Text Compare
Produced: 7/19/2015 1:53:25 PM
   
Mode:  All, With Context  
Left file: C:\mksong\workspace_genproglase\genproglase-output-r1658\template09\0718-1345\libtiff-bug-2005-12-14-6746b87-0d3d51d\sanity\tools\tiffcp.c  
Right file: C:\mksong\workspace_genproglase\genproglase-output-r1658\template09\0718-1345\libtiff-bug-2005-12-14-6746b87-0d3d51d\000000\tools\tiffcp.c  
1 typedef unsigned int size_t; = 1 typedef unsigned int size_t;
2 typedef unsigned char __u_char;   2 typedef unsigned char __u_char;
3 typedef unsigned short __u_short;   3 typedef unsigned short __u_short;
4 typedef unsigned int __u_int;   4 typedef unsigned int __u_int;
5 typedef unsigned long __u_long;   5 typedef unsigned long __u_long;
6 typedef signed char __int8_t;   6 typedef signed char __int8_t;
7 typedef unsigned char __uint8_t;   7 typedef unsigned char __uint8_t;
8 typedef short __int16_t;   8 typedef short __int16_t;
9 typedef unsigned short __uint16_t;   9 typedef unsigned short __uint16_t;
10 typedef int __int32_t;   10 typedef int __int32_t;
11 typedef unsigned int __uint32_t;   11 typedef unsigned int __uint32_t;
12 typedef long long __int64_t;   12 typedef long long __int64_t;
13 typedef unsigned long long __uint64_t;   13 typedef unsigned long long __uint64_t;
14 typedef long long __quad_t;   14 typedef long long __quad_t;
15 typedef unsigned long long __u_quad_t;   15 typedef unsigned long long __u_quad_t;
16 typedef __u_quad_t __dev_t;   16 typedef __u_quad_t __dev_t;
17 typedef unsigned int __uid_t;   17 typedef unsigned int __uid_t;
18 typedef unsigned int __gid_t;   18 typedef unsigned int __gid_t;
19 typedef unsigned long __ino_t;   19 typedef unsigned long __ino_t;
20 typedef __u_quad_t __ino64_t;   20 typedef __u_quad_t __ino64_t;
21 typedef unsigned int __mode_t;   21 typedef unsigned int __mode_t;
22 typedef unsigned int __nlink_t;   22 typedef unsigned int __nlink_t;
23 typedef long __off_t;   23 typedef long __off_t;
24 typedef __quad_t __off64_t;   24 typedef __quad_t __off64_t;
25 typedef int __pid_t;   25 typedef int __pid_t;
26 struct __anonstruct___fsid_t_1 {   26 struct __anonstruct___fsid_t_1 {
27    int __val[2] ;   27    int __val[2] ;
28 };   28 };
29 typedef struct __anonstruct___fsid_t_1 __fsid_t;   29 typedef struct __anonstruct___fsid_t_1 __fsid_t;
30 typedef long __clock_t;   30 typedef long __clock_t;
31 typedef unsigned long __rlim_t;   31 typedef unsigned long __rlim_t;
32 typedef __u_quad_t __rlim64_t;   32 typedef __u_quad_t __rlim64_t;
33 typedef unsigned int __id_t;   33 typedef unsigned int __id_t;
34 typedef long __time_t;   34 typedef long __time_t;
35 typedef unsigned int __useconds_t;   35 typedef unsigned int __useconds_t;
36 typedef long __suseconds_t;   36 typedef long __suseconds_t;
37 typedef int __daddr_t;   37 typedef int __daddr_t;
38 typedef long __swblk_t;   38 typedef long __swblk_t;
39 typedef int __key_t;   39 typedef int __key_t;
40 typedef int __clockid_t;   40 typedef int __clockid_t;
41 typedef void *__timer_t;   41 typedef void *__timer_t;
42 typedef long __blksize_t;   42 typedef long __blksize_t;
43 typedef long __blkcnt_t;   43 typedef long __blkcnt_t;
44 typedef __quad_t __blkcnt64_t;   44 typedef __quad_t __blkcnt64_t;
45 typedef unsigned long __fsblkcnt_t;   45 typedef unsigned long __fsblkcnt_t;
46 typedef __u_quad_t __fsblkcnt64_t;   46 typedef __u_quad_t __fsblkcnt64_t;
47 typedef unsigned long __fsfilcnt_t;   47 typedef unsigned long __fsfilcnt_t;
48 typedef __u_quad_t __fsfilcnt64_t;   48 typedef __u_quad_t __fsfilcnt64_t;
49 typedef int __ssize_t;   49 typedef int __ssize_t;
50 typedef __off64_t __loff_t;   50 typedef __off64_t __loff_t;
51 typedef __quad_t *__qaddr_t;   51 typedef __quad_t *__qaddr_t;
52 typedef char *__caddr_t;   52 typedef char *__caddr_t;
53 typedef int __intptr_t;   53 typedef int __intptr_t;
54 typedef unsigned int __socklen_t;   54 typedef unsigned int __socklen_t;
55 struct _IO_FILE;   55 struct _IO_FILE;
56 struct _IO_FILE;   56 struct _IO_FILE;
57 typedef struct _IO_FILE FILE;   57 typedef struct _IO_FILE FILE;
58 typedef struct _IO_FILE __FILE;   58 typedef struct _IO_FILE __FILE;
59 union __anonunion___value_3 {   59 union __anonunion___value_3 {
60    unsigned int __wch ;   60    unsigned int __wch ;
61    char __wchb[4] ;   61    char __wchb[4] ;
62 };   62 };
63 struct __anonstruct___mbstate_t_2 {   63 struct __anonstruct___mbstate_t_2 {
64    int __count ;   64    int __count ;
65    union __anonunion___value_3 __value ;   65    union __anonunion___value_3 __value ;
66 };   66 };
67 typedef struct __anonstruct___mbstate_t_2 __mbstate_t;   67 typedef struct __anonstruct___mbstate_t_2 __mbstate_t;
68 struct __anonstruct__G_fpos_t_4 {   68 struct __anonstruct__G_fpos_t_4 {
69    __off_t __pos ;   69    __off_t __pos ;
70    __mbstate_t __state ;   70    __mbstate_t __state ;
71 };   71 };
72 typedef struct __anonstruct__G_fpos_t_4 _G_fpos_t;   72 typedef struct __anonstruct__G_fpos_t_4 _G_fpos_t;
73 struct __anonstruct__G_fpos64_t_5 {   73 struct __anonstruct__G_fpos64_t_5 {
74    __off64_t __pos ;   74    __off64_t __pos ;
75    __mbstate_t __state ;   75    __mbstate_t __state ;
76 };   76 };
77 typedef struct __anonstruct__G_fpos64_t_5 _G_fpos64_t;   77 typedef struct __anonstruct__G_fpos64_t_5 _G_fpos64_t;
78 typedef short _G_int16_t;   78 typedef short _G_int16_t;
79 typedef int _G_int32_t;   79 typedef int _G_int32_t;
80 typedef unsigned short _G_uint16_t;   80 typedef unsigned short _G_uint16_t;
81 typedef unsigned int _G_uint32_t;   81 typedef unsigned int _G_uint32_t;
82 typedef __builtin_va_list __gnuc_va_list;   82 typedef __builtin_va_list __gnuc_va_list;
83 struct _IO_jump_t;   83 struct _IO_jump_t;
84 struct _IO_jump_t;   84 struct _IO_jump_t;
85 struct _IO_FILE;   85 struct _IO_FILE;
86 typedef void _IO_lock_t;   86 typedef void _IO_lock_t;
87 struct _IO_marker {   87 struct _IO_marker {
88    struct _IO_marker *_next ;   88    struct _IO_marker *_next ;
89    struct _IO_FILE *_sbuf ;   89    struct _IO_FILE *_sbuf ;
90    int _pos ;   90    int _pos ;
91 };   91 };
92 enum __codecvt_result {   92 enum __codecvt_result {
93     __codecvt_ok = 0,   93     __codecvt_ok = 0,
94     __codecvt_partial = 1,   94     __codecvt_partial = 1,
95     __codecvt_error = 2,   95     __codecvt_error = 2,
96     __codecvt_noconv = 3   96     __codecvt_noconv = 3
97 } ;   97 } ;
98 struct _IO_FILE {   98 struct _IO_FILE {
99    int _flags ;   99    int _flags ;
100    char *_IO_read_ptr ;   100    char *_IO_read_ptr ;
101    char *_IO_read_end ;   101    char *_IO_read_end ;
102    char *_IO_read_base ;   102    char *_IO_read_base ;
103    char *_IO_write_base ;   103    char *_IO_write_base ;
104    char *_IO_write_ptr ;   104    char *_IO_write_ptr ;
105    char *_IO_write_end ;   105    char *_IO_write_end ;
106    char *_IO_buf_base ;   106    char *_IO_buf_base ;
107    char *_IO_buf_end ;   107    char *_IO_buf_end ;
108    char *_IO_save_base ;   108    char *_IO_save_base ;
109    char *_IO_backup_base ;   109    char *_IO_backup_base ;
110    char *_IO_save_end ;   110    char *_IO_save_end ;
111    struct _IO_marker *_markers ;   111    struct _IO_marker *_markers ;
112    struct _IO_FILE *_chain ;   112    struct _IO_FILE *_chain ;
113    int _fileno ;   113    int _fileno ;
114    int _flags2 ;   114    int _flags2 ;
115    __off_t _old_offset ;   115    __off_t _old_offset ;
116    unsigned short _cur_column ;   116    unsigned short _cur_column ;
117    signed char _vtable_offset ;   117    signed char _vtable_offset ;
118    char _shortbuf[1] ;   118    char _shortbuf[1] ;
119    _IO_lock_t *_lock ;   119    _IO_lock_t *_lock ;
120    __off64_t _offset ;   120    __off64_t _offset ;
121    void *__pad1 ;   121    void *__pad1 ;
122    void *__pad2 ;   122    void *__pad2 ;
123    void *__pad3 ;   123    void *__pad3 ;
124    void *__pad4 ;   124    void *__pad4 ;
125    size_t __pad5 ;   125    size_t __pad5 ;
126    int _mode ;   126    int _mode ;
127    char _unused2[(15U * sizeof(int ) - 4U * sizeof(void *)) - sizeof(size_t )] ;   127    char _unused2[(15U * sizeof(int ) - 4U * sizeof(void *)) - sizeof(size_t )] ;
128 };   128 };
129 typedef struct _IO_FILE _IO_FILE;   129 typedef struct _IO_FILE _IO_FILE;
130 struct _IO_FILE_plus;   130 struct _IO_FILE_plus;
131 struct _IO_FILE_plus;   131 struct _IO_FILE_plus;
132 typedef __ssize_t __io_read_fn(void *__cookie , char *__buf , size_t __nbytes );   132 typedef __ssize_t __io_read_fn(void *__cookie , char *__buf , size_t __nbytes );
133 typedef __ssize_t __io_write_fn(void *__cookie , char const   *__buf ,   133 typedef __ssize_t __io_write_fn(void *__cookie , char const   *__buf ,
134                                 size_t __n );   134                                 size_t __n );
135 typedef int __io_seek_fn(void *__cookie , __off64_t *__pos , int __w );   135 typedef int __io_seek_fn(void *__cookie , __off64_t *__pos , int __w );
136 typedef int __io_close_fn(void *__cookie );   136 typedef int __io_close_fn(void *__cookie );
137 typedef __gnuc_va_list va_list;   137 typedef __gnuc_va_list va_list;
138 typedef __off64_t off_t;   138 typedef __off64_t off_t;
139 typedef __ssize_t ssize_t;   139 typedef __ssize_t ssize_t;
140 typedef _G_fpos64_t fpos_t;   140 typedef _G_fpos64_t fpos_t;
141 typedef long wchar_t;   141 typedef long wchar_t;
142 struct __anonstruct___wait_terminated_6 {   142 struct __anonstruct___wait_terminated_6 {
143    unsigned int __w_termsig : 7 ;   143    unsigned int __w_termsig : 7 ;
144    unsigned int __w_coredump : 1 ;   144    unsigned int __w_coredump : 1 ;
145    unsigned int __w_retcode : 8 ;   145    unsigned int __w_retcode : 8 ;
146    unsigned int  : 16 ;   146    unsigned int  : 16 ;
147 };   147 };
148 struct __anonstruct___wait_stopped_7 {   148 struct __anonstruct___wait_stopped_7 {
149    unsigned int __w_stopval : 8 ;   149    unsigned int __w_stopval : 8 ;
150    unsigned int __w_stopsig : 8 ;   150    unsigned int __w_stopsig : 8 ;
151    unsigned int  : 16 ;   151    unsigned int  : 16 ;
152 };   152 };
153 union wait {   153 union wait {
154    int w_status ;   154    int w_status ;
155    struct __anonstruct___wait_terminated_6 __wait_terminated ;   155    struct __anonstruct___wait_terminated_6 __wait_terminated ;
156    struct __anonstruct___wait_stopped_7 __wait_stopped ;   156    struct __anonstruct___wait_stopped_7 __wait_stopped ;
157 };   157 };
158 union __anonunion___WAIT_STATUS_8 {   158 union __anonunion___WAIT_STATUS_8 {
159    union wait *__uptr ;   159    union wait *__uptr ;
160    int *__iptr ;   160    int *__iptr ;
161 };   161 };
162 typedef union __anonunion___WAIT_STATUS_8  __attribute__((__transparent_union__)) __WAIT_STATUS;   162 typedef union __anonunion___WAIT_STATUS_8  __attribute__((__transparent_union__)) __WAIT_STATUS;
163 struct __anonstruct_div_t_9 {   163 struct __anonstruct_div_t_9 {
164    int quot ;   164    int quot ;
165    int rem ;   165    int rem ;
166 };   166 };
167 typedef struct __anonstruct_div_t_9 div_t;   167 typedef struct __anonstruct_div_t_9 div_t;
168 struct __anonstruct_ldiv_t_10 {   168 struct __anonstruct_ldiv_t_10 {
169    long quot ;   169    long quot ;
170    long rem ;   170    long rem ;
171 };   171 };
172 typedef struct __anonstruct_ldiv_t_10 ldiv_t;   172 typedef struct __anonstruct_ldiv_t_10 ldiv_t;
173 struct __anonstruct_lldiv_t_11 {   173 struct __anonstruct_lldiv_t_11 {
174    long long quot ;   174    long long quot ;
175    long long rem ;   175    long long rem ;
176 };   176 };
177 typedef struct __anonstruct_lldiv_t_11 lldiv_t;   177 typedef struct __anonstruct_lldiv_t_11 lldiv_t;
178 typedef __u_char u_char;   178 typedef __u_char u_char;
179 typedef __u_short u_short;   179 typedef __u_short u_short;
180 typedef __u_int u_int;   180 typedef __u_int u_int;
181 typedef __u_long u_long;   181 typedef __u_long u_long;
182 typedef __quad_t quad_t;   182 typedef __quad_t quad_t;
183 typedef __u_quad_t u_quad_t;   183 typedef __u_quad_t u_quad_t;
184 typedef __fsid_t fsid_t;   184 typedef __fsid_t fsid_t;
185 typedef __loff_t loff_t;   185 typedef __loff_t loff_t;
186 typedef __ino64_t ino_t;   186 typedef __ino64_t ino_t;
187 typedef __dev_t dev_t;   187 typedef __dev_t dev_t;
188 typedef __gid_t gid_t;   188 typedef __gid_t gid_t;
189 typedef __mode_t mode_t;   189 typedef __mode_t mode_t;
190 typedef __nlink_t nlink_t;   190 typedef __nlink_t nlink_t;
191 typedef __uid_t uid_t;   191 typedef __uid_t uid_t;
192 typedef __pid_t pid_t;   192 typedef __pid_t pid_t;
193 typedef __id_t id_t;   193 typedef __id_t id_t;
194 typedef __daddr_t daddr_t;   194 typedef __daddr_t daddr_t;
195 typedef __caddr_t caddr_t;   195 typedef __caddr_t caddr_t;
196 typedef __key_t key_t;   196 typedef __key_t key_t;
197 typedef __clock_t clock_t;   197 typedef __clock_t clock_t;
198 typedef __time_t time_t;   198 typedef __time_t time_t;
199 typedef __clockid_t clockid_t;   199 typedef __clockid_t clockid_t;
200 typedef __timer_t timer_t;   200 typedef __timer_t timer_t;
201 typedef unsigned long ulong;   201 typedef unsigned long ulong;
202 typedef unsigned short ushort;   202 typedef unsigned short ushort;
203 typedef unsigned int uint;   203 typedef unsigned int uint;
204 typedef signed char int8_t;   204 typedef signed char int8_t;
205 typedef short int16_t;   205 typedef short int16_t;
206 typedef int int32_t;   206 typedef int int32_t;
207 typedef long long int64_t;   207 typedef long long int64_t;
208 typedef unsigned char u_int8_t;   208 typedef unsigned char u_int8_t;
209 typedef unsigned short u_int16_t;   209 typedef unsigned short u_int16_t;
210 typedef unsigned int u_int32_t;   210 typedef unsigned int u_int32_t;
211 typedef unsigned long long u_int64_t;   211 typedef unsigned long long u_int64_t;
212 typedef int register_t;   212 typedef int register_t;
213 typedef int __sig_atomic_t;   213 typedef int __sig_atomic_t;
214 struct __anonstruct___sigset_t_12 {   214 struct __anonstruct___sigset_t_12 {
215    unsigned long __val[1024U / (8U * sizeof(unsigned long ))] ;   215    unsigned long __val[1024U / (8U * sizeof(unsigned long ))] ;
216 };   216 };
217 typedef struct __anonstruct___sigset_t_12 __sigset_t;   217 typedef struct __anonstruct___sigset_t_12 __sigset_t;
218 typedef __sigset_t sigset_t;   218 typedef __sigset_t sigset_t;
219 struct timespec {   219 struct timespec {
220    __time_t tv_sec ;   220    __time_t tv_sec ;
221    long tv_nsec ;   221    long tv_nsec ;
222 };   222 };
223 struct timeval {   223 struct timeval {
224    __time_t tv_sec ;   224    __time_t tv_sec ;
225    __suseconds_t tv_usec ;   225    __suseconds_t tv_usec ;
226 };   226 };
227 typedef __suseconds_t suseconds_t;   227 typedef __suseconds_t suseconds_t;
228 typedef long __fd_mask;   228 typedef long __fd_mask;
229 struct __anonstruct_fd_set_13 {   229 struct __anonstruct_fd_set_13 {
230    __fd_mask __fds_bits[1024 / (8 * (int )sizeof(__fd_mask ))] ;   230    __fd_mask __fds_bits[1024 / (8 * (int )sizeof(__fd_mask ))] ;
231 };   231 };
232 typedef struct __anonstruct_fd_set_13 fd_set;   232 typedef struct __anonstruct_fd_set_13 fd_set;
233 typedef __fd_mask fd_mask;   233 typedef __fd_mask fd_mask;
234 typedef __blksize_t blksize_t;   234 typedef __blksize_t blksize_t;
235 typedef __blkcnt64_t blkcnt_t;   235 typedef __blkcnt64_t blkcnt_t;
236 typedef __fsblkcnt64_t fsblkcnt_t;   236 typedef __fsblkcnt64_t fsblkcnt_t;
237 typedef __fsfilcnt64_t fsfilcnt_t;   237 typedef __fsfilcnt64_t fsfilcnt_t;
238 typedef unsigned long pthread_t;   238 typedef unsigned long pthread_t;
239 union __anonunion_pthread_attr_t_14 {   239 union __anonunion_pthread_attr_t_14 {
240    char __size[36] ;   240    char __size[36] ;
241    long __align ;   241    long __align ;
242 };   242 };
243 typedef union __anonunion_pthread_attr_t_14 pthread_attr_t;   243 typedef union __anonunion_pthread_attr_t_14 pthread_attr_t;
244 struct __pthread_internal_slist {   244 struct __pthread_internal_slist {
245    struct __pthread_internal_slist *__next ;   245    struct __pthread_internal_slist *__next ;
246 };   246 };
247 typedef struct __pthread_internal_slist __pthread_slist_t;   247 typedef struct __pthread_internal_slist __pthread_slist_t;
248 union __anonunion____missing_field_name_16 {   248 union __anonunion____missing_field_name_16 {
249    int __spins ;   249    int __spins ;
250    __pthread_slist_t __list ;   250    __pthread_slist_t __list ;
251 };   251 };
252 struct __pthread_mutex_s {   252 struct __pthread_mutex_s {
253    int __lock ;   253    int __lock ;
254    unsigned int __count ;   254    unsigned int __count ;
255    int __owner ;   255    int __owner ;
256    int __kind ;   256    int __kind ;
257    unsigned int __nusers ;   257    unsigned int __nusers ;
258    union __anonunion____missing_field_name_16 __annonCompField1 ;   258    union __anonunion____missing_field_name_16 __annonCompField1 ;
259 };   259 };
260 union __anonunion_pthread_mutex_t_15 {   260 union __anonunion_pthread_mutex_t_15 {
261    struct __pthread_mutex_s __data ;   261    struct __pthread_mutex_s __data ;
262    char __size[24] ;   262    char __size[24] ;
263    long __align ;   263    long __align ;
264 };   264 };
265 typedef union __anonunion_pthread_mutex_t_15 pthread_mutex_t;   265 typedef union __anonunion_pthread_mutex_t_15 pthread_mutex_t;
266 union __anonunion_pthread_mutexattr_t_17 {   266 union __anonunion_pthread_mutexattr_t_17 {
267    char __size[4] ;   267    char __size[4] ;
268    long __align ;   268    long __align ;
269 };   269 };
270 typedef union __anonunion_pthread_mutexattr_t_17 pthread_mutexattr_t;   270 typedef union __anonunion_pthread_mutexattr_t_17 pthread_mutexattr_t;
271 struct __anonstruct___data_19 {   271 struct __anonstruct___data_19 {
272    int __lock ;   272    int __lock ;
273    unsigned int __futex ;   273    unsigned int __futex ;
274    unsigned long long __total_seq ;   274    unsigned long long __total_seq ;
275    unsigned long long __wakeup_seq ;   275    unsigned long long __wakeup_seq ;
276    unsigned long long __woken_seq ;   276    unsigned long long __woken_seq ;
277    void *__mutex ;   277    void *__mutex ;
278    unsigned int __nwaiters ;   278    unsigned int __nwaiters ;
279    unsigned int __broadcast_seq ;   279    unsigned int __broadcast_seq ;
280 };   280 };
281 union __anonunion_pthread_cond_t_18 {   281 union __anonunion_pthread_cond_t_18 {
282    struct __anonstruct___data_19 __data ;   282    struct __anonstruct___data_19 __data ;
283    char __size[48] ;   283    char __size[48] ;
284    long long __align ;   284    long long __align ;
285 };   285 };
286 typedef union __anonunion_pthread_cond_t_18 pthread_cond_t;   286 typedef union __anonunion_pthread_cond_t_18 pthread_cond_t;
287 union __anonunion_pthread_condattr_t_20 {   287 union __anonunion_pthread_condattr_t_20 {
288    char __size[4] ;   288    char __size[4] ;
289    long __align ;   289    long __align ;
290 };   290 };
291 typedef union __anonunion_pthread_condattr_t_20 pthread_condattr_t;   291 typedef union __anonunion_pthread_condattr_t_20 pthread_condattr_t;
292 typedef unsigned int pthread_key_t;   292 typedef unsigned int pthread_key_t;
293 typedef int pthread_once_t;   293 typedef int pthread_once_t;
294 struct __anonstruct___data_22 {   294 struct __anonstruct___data_22 {
295    int __lock ;   295    int __lock ;
296    unsigned int __nr_readers ;   296    unsigned int __nr_readers ;
297    unsigned int __readers_wakeup ;   297    unsigned int __readers_wakeup ;
298    unsigned int __writer_wakeup ;   298    unsigned int __writer_wakeup ;
299    unsigned int __nr_readers_queued ;   299    unsigned int __nr_readers_queued ;
300    unsigned int __nr_writers_queued ;   300    unsigned int __nr_writers_queued ;
301    unsigned char __flags ;   301    unsigned char __flags ;
302    unsigned char __shared ;   302    unsigned char __shared ;
303    unsigned char __pad1 ;   303    unsigned char __pad1 ;
304    unsigned char __pad2 ;   304    unsigned char __pad2 ;
305    int __writer ;   305    int __writer ;
306 };   306 };
307 union __anonunion_pthread_rwlock_t_21 {   307 union __anonunion_pthread_rwlock_t_21 {
308    struct __anonstruct___data_22 __data ;   308    struct __anonstruct___data_22 __data ;
309    char __size[32] ;   309    char __size[32] ;
310    long __align ;   310    long __align ;
311 };   311 };
312 typedef union __anonunion_pthread_rwlock_t_21 pthread_rwlock_t;   312 typedef union __anonunion_pthread_rwlock_t_21 pthread_rwlock_t;
313 union __anonunion_pthread_rwlockattr_t_23 {   313 union __anonunion_pthread_rwlockattr_t_23 {
314    char __size[8] ;   314    char __size[8] ;
315    long __align ;   315    long __align ;
316 };   316 };
317 typedef union __anonunion_pthread_rwlockattr_t_23 pthread_rwlockattr_t;   317 typedef union __anonunion_pthread_rwlockattr_t_23 pthread_rwlockattr_t;
318 typedef int volatile   pthread_spinlock_t;   318 typedef int volatile   pthread_spinlock_t;
319 union __anonunion_pthread_barrier_t_24 {   319 union __anonunion_pthread_barrier_t_24 {
320    char __size[20] ;   320    char __size[20] ;
321    long __align ;   321    long __align ;
322 };   322 };
323 typedef union __anonunion_pthread_barrier_t_24 pthread_barrier_t;   323 typedef union __anonunion_pthread_barrier_t_24 pthread_barrier_t;
324 union __anonunion_pthread_barrierattr_t_25 {   324 union __anonunion_pthread_barrierattr_t_25 {
325    char __size[4] ;   325    char __size[4] ;
326    int __align ;   326    int __align ;
327 };   327 };
328 typedef union __anonunion_pthread_barrierattr_t_25 pthread_barrierattr_t;   328 typedef union __anonunion_pthread_barrierattr_t_25 pthread_barrierattr_t;
329 struct random_data {   329 struct random_data {
330    int32_t *fptr ;   330    int32_t *fptr ;
331    int32_t *rptr ;   331    int32_t *rptr ;
332    int32_t *state ;   332    int32_t *state ;
333    int rand_type ;   333    int rand_type ;
334    int rand_deg ;   334    int rand_deg ;
335    int rand_sep ;   335    int rand_sep ;
336    int32_t *end_ptr ;   336    int32_t *end_ptr ;
337 };   337 };
338 struct drand48_data {   338 struct drand48_data {
339    unsigned short __x[3] ;   339    unsigned short __x[3] ;
340    unsigned short __old_x[3] ;   340    unsigned short __old_x[3] ;
341    unsigned short __c ;   341    unsigned short __c ;
342    unsigned short __init ;   342    unsigned short __init ;
343    unsigned long long __a ;   343    unsigned long long __a ;
344 };   344 };
345 typedef int (*__compar_fn_t)(void const   * , void const   * );   345 typedef int (*__compar_fn_t)(void const   * , void const   * );
346 struct __locale_data;   346 struct __locale_data;
347 struct __locale_struct {   347 struct __locale_struct {
348    struct __locale_data *__locales[13] ;   348    struct __locale_data *__locales[13] ;
349    unsigned short const   *__ctype_b ;   349    unsigned short const   *__ctype_b ;
350    int const   *__ctype_tolower ;   350    int const   *__ctype_tolower ;
351    int const   *__ctype_toupper ;   351    int const   *__ctype_toupper ;
352    char const   *__names[13] ;   352    char const   *__names[13] ;
353 };   353 };
354 typedef struct __locale_struct *__locale_t;   354 typedef struct __locale_struct *__locale_t;
355 typedef __locale_t locale_t;   355 typedef __locale_t locale_t;
356 enum __anonenum_26 {   356 enum __anonenum_26 {
357     _ISupper = 256,   357     _ISupper = 256,
358     _ISlower = 512,   358     _ISlower = 512,
359     _ISalpha = 1024,   359     _ISalpha = 1024,
360     _ISdigit = 2048,   360     _ISdigit = 2048,
361     _ISxdigit = 4096,   361     _ISxdigit = 4096,
362     _ISspace = 8192,   362     _ISspace = 8192,
363     _ISprint = 16384,   363     _ISprint = 16384,
364     _ISgraph = 32768,   364     _ISgraph = 32768,
365     _ISblank = 1,   365     _ISblank = 1,
366     _IScntrl = 2,   366     _IScntrl = 2,
367     _ISpunct = 4,   367     _ISpunct = 4,
368     _ISalnum = 8   368     _ISalnum = 8
369 } ;   369 } ;
370 typedef __useconds_t useconds_t;   370 typedef __useconds_t useconds_t;
371 typedef __intptr_t intptr_t;   371 typedef __intptr_t intptr_t;
372 typedef __socklen_t socklen_t;   372 typedef __socklen_t socklen_t;
373 enum __anonenum_27 {   373 enum __anonenum_27 {
374     _PC_LINK_MAX = 0,   374     _PC_LINK_MAX = 0,
375     _PC_MAX_CANON = 1,   375     _PC_MAX_CANON = 1,
376     _PC_MAX_INPUT = 2,   376     _PC_MAX_INPUT = 2,
377     _PC_NAME_MAX = 3,   377     _PC_NAME_MAX = 3,
378     _PC_PATH_MAX = 4,   378     _PC_PATH_MAX = 4,
379     _PC_PIPE_BUF = 5,   379     _PC_PIPE_BUF = 5,
380     _PC_CHOWN_RESTRICTED = 6,   380     _PC_CHOWN_RESTRICTED = 6,
381     _PC_NO_TRUNC = 7,   381     _PC_NO_TRUNC = 7,
382     _PC_VDISABLE = 8,   382     _PC_VDISABLE = 8,
383     _PC_SYNC_IO = 9,   383     _PC_SYNC_IO = 9,
384     _PC_ASYNC_IO = 10,   384     _PC_ASYNC_IO = 10,
385     _PC_PRIO_IO = 11,   385     _PC_PRIO_IO = 11,
386     _PC_SOCK_MAXBUF = 12,   386     _PC_SOCK_MAXBUF = 12,
387     _PC_FILESIZEBITS = 13,   387     _PC_FILESIZEBITS = 13,
388     _PC_REC_INCR_XFER_SIZE = 14,   388     _PC_REC_INCR_XFER_SIZE = 14,
389     _PC_REC_MAX_XFER_SIZE = 15,   389     _PC_REC_MAX_XFER_SIZE = 15,
390     _PC_REC_MIN_XFER_SIZE = 16,   390     _PC_REC_MIN_XFER_SIZE = 16,
391     _PC_REC_XFER_ALIGN = 17,   391     _PC_REC_XFER_ALIGN = 17,
392     _PC_ALLOC_SIZE_MIN = 18,   392     _PC_ALLOC_SIZE_MIN = 18,
393     _PC_SYMLINK_MAX = 19,   393     _PC_SYMLINK_MAX = 19,
394     _PC_2_SYMLINKS = 20   394     _PC_2_SYMLINKS = 20
395 } ;   395 } ;
396 enum __anonenum_28 {   396 enum __anonenum_28 {
397     _SC_ARG_MAX = 0,   397     _SC_ARG_MAX = 0,
398     _SC_CHILD_MAX = 1,   398     _SC_CHILD_MAX = 1,
399     _SC_CLK_TCK = 2,   399     _SC_CLK_TCK = 2,
400     _SC_NGROUPS_MAX = 3,   400     _SC_NGROUPS_MAX = 3,
401     _SC_OPEN_MAX = 4,   401     _SC_OPEN_MAX = 4,
402     _SC_STREAM_MAX = 5,   402     _SC_STREAM_MAX = 5,
403     _SC_TZNAME_MAX = 6,   403     _SC_TZNAME_MAX = 6,
404     _SC_JOB_CONTROL = 7,   404     _SC_JOB_CONTROL = 7,
405     _SC_SAVED_IDS = 8,   405     _SC_SAVED_IDS = 8,
406     _SC_REALTIME_SIGNALS = 9,   406     _SC_REALTIME_SIGNALS = 9,
407     _SC_PRIORITY_SCHEDULING = 10,   407     _SC_PRIORITY_SCHEDULING = 10,
408     _SC_TIMERS = 11,   408     _SC_TIMERS = 11,
409     _SC_ASYNCHRONOUS_IO = 12,   409     _SC_ASYNCHRONOUS_IO = 12,
410     _SC_PRIORITIZED_IO = 13,   410     _SC_PRIORITIZED_IO = 13,
411     _SC_SYNCHRONIZED_IO = 14,   411     _SC_SYNCHRONIZED_IO = 14,
412     _SC_FSYNC = 15,   412     _SC_FSYNC = 15,
413     _SC_MAPPED_FILES = 16,   413     _SC_MAPPED_FILES = 16,
414     _SC_MEMLOCK = 17,   414     _SC_MEMLOCK = 17,
415     _SC_MEMLOCK_RANGE = 18,   415     _SC_MEMLOCK_RANGE = 18,
416     _SC_MEMORY_PROTECTION = 19,   416     _SC_MEMORY_PROTECTION = 19,
417     _SC_MESSAGE_PASSING = 20,   417     _SC_MESSAGE_PASSING = 20,
418     _SC_SEMAPHORES = 21,   418     _SC_SEMAPHORES = 21,
419     _SC_SHARED_MEMORY_OBJECTS = 22,   419     _SC_SHARED_MEMORY_OBJECTS = 22,
420     _SC_AIO_LISTIO_MAX = 23,   420     _SC_AIO_LISTIO_MAX = 23,
421     _SC_AIO_MAX = 24,   421     _SC_AIO_MAX = 24,
422     _SC_AIO_PRIO_DELTA_MAX = 25,   422     _SC_AIO_PRIO_DELTA_MAX = 25,
423     _SC_DELAYTIMER_MAX = 26,   423     _SC_DELAYTIMER_MAX = 26,
424     _SC_MQ_OPEN_MAX = 27,   424     _SC_MQ_OPEN_MAX = 27,
425     _SC_MQ_PRIO_MAX = 28,   425     _SC_MQ_PRIO_MAX = 28,
426     _SC_VERSION = 29,   426     _SC_VERSION = 29,
427     _SC_PAGESIZE = 30,   427     _SC_PAGESIZE = 30,
428     _SC_RTSIG_MAX = 31,   428     _SC_RTSIG_MAX = 31,
429     _SC_SEM_NSEMS_MAX = 32,   429     _SC_SEM_NSEMS_MAX = 32,
430     _SC_SEM_VALUE_MAX = 33,   430     _SC_SEM_VALUE_MAX = 33,
431     _SC_SIGQUEUE_MAX = 34,   431     _SC_SIGQUEUE_MAX = 34,
432     _SC_TIMER_MAX = 35,   432     _SC_TIMER_MAX = 35,
433     _SC_BC_BASE_MAX = 36,   433     _SC_BC_BASE_MAX = 36,
434     _SC_BC_DIM_MAX = 37,   434     _SC_BC_DIM_MAX = 37,
435     _SC_BC_SCALE_MAX = 38,   435     _SC_BC_SCALE_MAX = 38,
436     _SC_BC_STRING_MAX = 39,   436     _SC_BC_STRING_MAX = 39,
437     _SC_COLL_WEIGHTS_MAX = 40,   437     _SC_COLL_WEIGHTS_MAX = 40,
438     _SC_EQUIV_CLASS_MAX = 41,   438     _SC_EQUIV_CLASS_MAX = 41,
439     _SC_EXPR_NEST_MAX = 42,   439     _SC_EXPR_NEST_MAX = 42,
440     _SC_LINE_MAX = 43,   440     _SC_LINE_MAX = 43,
441     _SC_RE_DUP_MAX = 44,   441     _SC_RE_DUP_MAX = 44,
442     _SC_CHARCLASS_NAME_MAX = 45,   442     _SC_CHARCLASS_NAME_MAX = 45,
443     _SC_2_VERSION = 46,   443     _SC_2_VERSION = 46,
444     _SC_2_C_BIND = 47,   444     _SC_2_C_BIND = 47,
445     _SC_2_C_DEV = 48,   445     _SC_2_C_DEV = 48,
446     _SC_2_FORT_DEV = 49,   446     _SC_2_FORT_DEV = 49,
447     _SC_2_FORT_RUN = 50,   447     _SC_2_FORT_RUN = 50,
448     _SC_2_SW_DEV = 51,   448     _SC_2_SW_DEV = 51,
449     _SC_2_LOCALEDEF = 52,   449     _SC_2_LOCALEDEF = 52,
450     _SC_PII = 53,   450     _SC_PII = 53,
451     _SC_PII_XTI = 54,   451     _SC_PII_XTI = 54,
452     _SC_PII_SOCKET = 55,   452     _SC_PII_SOCKET = 55,
453     _SC_PII_INTERNET = 56,   453     _SC_PII_INTERNET = 56,
454     _SC_PII_OSI = 57,   454     _SC_PII_OSI = 57,
455     _SC_POLL = 58,   455     _SC_POLL = 58,
456     _SC_SELECT = 59,   456     _SC_SELECT = 59,
457     _SC_UIO_MAXIOV = 60,   457     _SC_UIO_MAXIOV = 60,
458     _SC_IOV_MAX = 60,   458     _SC_IOV_MAX = 60,
459     _SC_PII_INTERNET_STREAM = 61,   459     _SC_PII_INTERNET_STREAM = 61,
460     _SC_PII_INTERNET_DGRAM = 62,   460     _SC_PII_INTERNET_DGRAM = 62,
461     _SC_PII_OSI_COTS = 63,   461     _SC_PII_OSI_COTS = 63,
462     _SC_PII_OSI_CLTS = 64,   462     _SC_PII_OSI_CLTS = 64,
463     _SC_PII_OSI_M = 65,   463     _SC_PII_OSI_M = 65,
464     _SC_T_IOV_MAX = 66,   464     _SC_T_IOV_MAX = 66,
465     _SC_THREADS = 67,   465     _SC_THREADS = 67,
466     _SC_THREAD_SAFE_FUNCTIONS = 68,   466     _SC_THREAD_SAFE_FUNCTIONS = 68,
467     _SC_GETGR_R_SIZE_MAX = 69,   467     _SC_GETGR_R_SIZE_MAX = 69,
468     _SC_GETPW_R_SIZE_MAX = 70,   468     _SC_GETPW_R_SIZE_MAX = 70,
469     _SC_LOGIN_NAME_MAX = 71,   469     _SC_LOGIN_NAME_MAX = 71,
470     _SC_TTY_NAME_MAX = 72,   470     _SC_TTY_NAME_MAX = 72,
471     _SC_THREAD_DESTRUCTOR_ITERATIONS = 73,   471     _SC_THREAD_DESTRUCTOR_ITERATIONS = 73,
472     _SC_THREAD_KEYS_MAX = 74,   472     _SC_THREAD_KEYS_MAX = 74,
473     _SC_THREAD_STACK_MIN = 75,   473     _SC_THREAD_STACK_MIN = 75,
474     _SC_THREAD_THREADS_MAX = 76,   474     _SC_THREAD_THREADS_MAX = 76,
475     _SC_THREAD_ATTR_STACKADDR = 77,   475     _SC_THREAD_ATTR_STACKADDR = 77,
476     _SC_THREAD_ATTR_STACKSIZE = 78,   476     _SC_THREAD_ATTR_STACKSIZE = 78,
477     _SC_THREAD_PRIORITY_SCHEDULING = 79,   477     _SC_THREAD_PRIORITY_SCHEDULING = 79,
478     _SC_THREAD_PRIO_INHERIT = 80,   478     _SC_THREAD_PRIO_INHERIT = 80,
479     _SC_THREAD_PRIO_PROTECT = 81,   479     _SC_THREAD_PRIO_PROTECT = 81,
480     _SC_THREAD_PROCESS_SHARED = 82,   480     _SC_THREAD_PROCESS_SHARED = 82,
481     _SC_NPROCESSORS_CONF = 83,   481     _SC_NPROCESSORS_CONF = 83,
482     _SC_NPROCESSORS_ONLN = 84,   482     _SC_NPROCESSORS_ONLN = 84,
483     _SC_PHYS_PAGES = 85,   483     _SC_PHYS_PAGES = 85,
484     _SC_AVPHYS_PAGES = 86,   484     _SC_AVPHYS_PAGES = 86,
485     _SC_ATEXIT_MAX = 87,   485     _SC_ATEXIT_MAX = 87,
486     _SC_PASS_MAX = 88,   486     _SC_PASS_MAX = 88,
487     _SC_XOPEN_VERSION = 89,   487     _SC_XOPEN_VERSION = 89,
488     _SC_XOPEN_XCU_VERSION = 90,   488     _SC_XOPEN_XCU_VERSION = 90,
489     _SC_XOPEN_UNIX = 91,   489     _SC_XOPEN_UNIX = 91,
490     _SC_XOPEN_CRYPT = 92,   490     _SC_XOPEN_CRYPT = 92,
491     _SC_XOPEN_ENH_I18N = 93,   491     _SC_XOPEN_ENH_I18N = 93,
492     _SC_XOPEN_SHM = 94,   492     _SC_XOPEN_SHM = 94,
493     _SC_2_CHAR_TERM = 95,   493     _SC_2_CHAR_TERM = 95,
494     _SC_2_C_VERSION = 96,   494     _SC_2_C_VERSION = 96,
495     _SC_2_UPE = 97,   495     _SC_2_UPE = 97,
496     _SC_XOPEN_XPG2 = 98,   496     _SC_XOPEN_XPG2 = 98,
497     _SC_XOPEN_XPG3 = 99,   497     _SC_XOPEN_XPG3 = 99,
498     _SC_XOPEN_XPG4 = 100,   498     _SC_XOPEN_XPG4 = 100,
499     _SC_CHAR_BIT = 101,   499     _SC_CHAR_BIT = 101,
500     _SC_CHAR_MAX = 102,   500     _SC_CHAR_MAX = 102,
501     _SC_CHAR_MIN = 103,   501     _SC_CHAR_MIN = 103,
502     _SC_INT_MAX = 104,   502     _SC_INT_MAX = 104,
503     _SC_INT_MIN = 105,   503     _SC_INT_MIN = 105,
504     _SC_LONG_BIT = 106,   504     _SC_LONG_BIT = 106,
505     _SC_WORD_BIT = 107,   505     _SC_WORD_BIT = 107,
506     _SC_MB_LEN_MAX = 108,   506     _SC_MB_LEN_MAX = 108,
507     _SC_NZERO = 109,   507     _SC_NZERO = 109,
508     _SC_SSIZE_MAX = 110,   508     _SC_SSIZE_MAX = 110,
509     _SC_SCHAR_MAX = 111,   509     _SC_SCHAR_MAX = 111,
510     _SC_SCHAR_MIN = 112,   510     _SC_SCHAR_MIN = 112,
511     _SC_SHRT_MAX = 113,   511     _SC_SHRT_MAX = 113,
512     _SC_SHRT_MIN = 114,   512     _SC_SHRT_MIN = 114,
513     _SC_UCHAR_MAX = 115,   513     _SC_UCHAR_MAX = 115,
514     _SC_UINT_MAX = 116,   514     _SC_UINT_MAX = 116,
515     _SC_ULONG_MAX = 117,   515     _SC_ULONG_MAX = 117,
516     _SC_USHRT_MAX = 118,   516     _SC_USHRT_MAX = 118,
517     _SC_NL_ARGMAX = 119,   517     _SC_NL_ARGMAX = 119,
518     _SC_NL_LANGMAX = 120,   518     _SC_NL_LANGMAX = 120,
519     _SC_NL_MSGMAX = 121,   519     _SC_NL_MSGMAX = 121,
520     _SC_NL_NMAX = 122,   520     _SC_NL_NMAX = 122,
521     _SC_NL_SETMAX = 123,   521     _SC_NL_SETMAX = 123,
522     _SC_NL_TEXTMAX = 124,   522     _SC_NL_TEXTMAX = 124,
523     _SC_XBS5_ILP32_OFF32 = 125,   523     _SC_XBS5_ILP32_OFF32 = 125,
524     _SC_XBS5_ILP32_OFFBIG = 126,   524     _SC_XBS5_ILP32_OFFBIG = 126,
525     _SC_XBS5_LP64_OFF64 = 127,   525     _SC_XBS5_LP64_OFF64 = 127,
526     _SC_XBS5_LPBIG_OFFBIG = 128,   526     _SC_XBS5_LPBIG_OFFBIG = 128,
527     _SC_XOPEN_LEGACY = 129,   527     _SC_XOPEN_LEGACY = 129,
528     _SC_XOPEN_REALTIME = 130,   528     _SC_XOPEN_REALTIME = 130,
529     _SC_XOPEN_REALTIME_THREADS = 131,   529     _SC_XOPEN_REALTIME_THREADS = 131,
530     _SC_ADVISORY_INFO = 132,   530     _SC_ADVISORY_INFO = 132,
531     _SC_BARRIERS = 133,   531     _SC_BARRIERS = 133,
532     _SC_BASE = 134,   532     _SC_BASE = 134,
533     _SC_C_LANG_SUPPORT = 135,   533     _SC_C_LANG_SUPPORT = 135,
534     _SC_C_LANG_SUPPORT_R = 136,   534     _SC_C_LANG_SUPPORT_R = 136,
535     _SC_CLOCK_SELECTION = 137,   535     _SC_CLOCK_SELECTION = 137,
536     _SC_CPUTIME = 138,   536     _SC_CPUTIME = 138,
537     _SC_THREAD_CPUTIME = 139,   537     _SC_THREAD_CPUTIME = 139,
538     _SC_DEVICE_IO = 140,   538     _SC_DEVICE_IO = 140,
539     _SC_DEVICE_SPECIFIC = 141,   539     _SC_DEVICE_SPECIFIC = 141,
540     _SC_DEVICE_SPECIFIC_R = 142,   540     _SC_DEVICE_SPECIFIC_R = 142,
541     _SC_FD_MGMT = 143,   541     _SC_FD_MGMT = 143,
542     _SC_FIFO = 144,   542     _SC_FIFO = 144,
543     _SC_PIPE = 145,   543     _SC_PIPE = 145,
544     _SC_FILE_ATTRIBUTES = 146,   544     _SC_FILE_ATTRIBUTES = 146,
545     _SC_FILE_LOCKING = 147,   545     _SC_FILE_LOCKING = 147,
546     _SC_FILE_SYSTEM = 148,   546     _SC_FILE_SYSTEM = 148,
547     _SC_MONOTONIC_CLOCK = 149,   547     _SC_MONOTONIC_CLOCK = 149,
548     _SC_MULTI_PROCESS = 150,   548     _SC_MULTI_PROCESS = 150,
549     _SC_SINGLE_PROCESS = 151,   549     _SC_SINGLE_PROCESS = 151,
550     _SC_NETWORKING = 152,   550     _SC_NETWORKING = 152,
551     _SC_READER_WRITER_LOCKS = 153,   551     _SC_READER_WRITER_LOCKS = 153,
552     _SC_SPIN_LOCKS = 154,   552     _SC_SPIN_LOCKS = 154,
553     _SC_REGEXP = 155,   553     _SC_REGEXP = 155,
554     _SC_REGEX_VERSION = 156,   554     _SC_REGEX_VERSION = 156,
555     _SC_SHELL = 157,   555     _SC_SHELL = 157,
556     _SC_SIGNALS = 158,   556     _SC_SIGNALS = 158,
557     _SC_SPAWN = 159,   557     _SC_SPAWN = 159,
558     _SC_SPORADIC_SERVER = 160,   558     _SC_SPORADIC_SERVER = 160,
559     _SC_THREAD_SPORADIC_SERVER = 161,   559     _SC_THREAD_SPORADIC_SERVER = 161,
560     _SC_SYSTEM_DATABASE = 162,   560     _SC_SYSTEM_DATABASE = 162,
561     _SC_SYSTEM_DATABASE_R = 163,   561     _SC_SYSTEM_DATABASE_R = 163,
562     _SC_TIMEOUTS = 164,   562     _SC_TIMEOUTS = 164,
563     _SC_TYPED_MEMORY_OBJECTS = 165,   563     _SC_TYPED_MEMORY_OBJECTS = 165,
564     _SC_USER_GROUPS = 166,   564     _SC_USER_GROUPS = 166,
565     _SC_USER_GROUPS_R = 167,   565     _SC_USER_GROUPS_R = 167,
566     _SC_2_PBS = 168,   566     _SC_2_PBS = 168,
567     _SC_2_PBS_ACCOUNTING = 169,   567     _SC_2_PBS_ACCOUNTING = 169,
568     _SC_2_PBS_LOCATE = 170,   568     _SC_2_PBS_LOCATE = 170,
569     _SC_2_PBS_MESSAGE = 171,   569     _SC_2_PBS_MESSAGE = 171,
570     _SC_2_PBS_TRACK = 172,   570     _SC_2_PBS_TRACK = 172,
571     _SC_SYMLOOP_MAX = 173,   571     _SC_SYMLOOP_MAX = 173,
572     _SC_STREAMS = 174,   572     _SC_STREAMS = 174,
573     _SC_2_PBS_CHECKPOINT = 175,   573     _SC_2_PBS_CHECKPOINT = 175,
574     _SC_V6_ILP32_OFF32 = 176,   574     _SC_V6_ILP32_OFF32 = 176,
575     _SC_V6_ILP32_OFFBIG = 177,   575     _SC_V6_ILP32_OFFBIG = 177,
576     _SC_V6_LP64_OFF64 = 178,   576     _SC_V6_LP64_OFF64 = 178,
577     _SC_V6_LPBIG_OFFBIG = 179,   577     _SC_V6_LPBIG_OFFBIG = 179,
578     _SC_HOST_NAME_MAX = 180,   578     _SC_HOST_NAME_MAX = 180,
579     _SC_TRACE = 181,   579     _SC_TRACE = 181,
580     _SC_TRACE_EVENT_FILTER = 182,   580     _SC_TRACE_EVENT_FILTER = 182,
581     _SC_TRACE_INHERIT = 183,   581     _SC_TRACE_INHERIT = 183,
582     _SC_TRACE_LOG = 184,   582     _SC_TRACE_LOG = 184,
583     _SC_LEVEL1_ICACHE_SIZE = 185,   583     _SC_LEVEL1_ICACHE_SIZE = 185,
584     _SC_LEVEL1_ICACHE_ASSOC = 186,   584     _SC_LEVEL1_ICACHE_ASSOC = 186,
585     _SC_LEVEL1_ICACHE_LINESIZE = 187,   585     _SC_LEVEL1_ICACHE_LINESIZE = 187,
586     _SC_LEVEL1_DCACHE_SIZE = 188,   586     _SC_LEVEL1_DCACHE_SIZE = 188,
587     _SC_LEVEL1_DCACHE_ASSOC = 189,   587     _SC_LEVEL1_DCACHE_ASSOC = 189,
588     _SC_LEVEL1_DCACHE_LINESIZE = 190,   588     _SC_LEVEL1_DCACHE_LINESIZE = 190,
589     _SC_LEVEL2_CACHE_SIZE = 191,   589     _SC_LEVEL2_CACHE_SIZE = 191,
590     _SC_LEVEL2_CACHE_ASSOC = 192,   590     _SC_LEVEL2_CACHE_ASSOC = 192,
591     _SC_LEVEL2_CACHE_LINESIZE = 193,   591     _SC_LEVEL2_CACHE_LINESIZE = 193,
592     _SC_LEVEL3_CACHE_SIZE = 194,   592     _SC_LEVEL3_CACHE_SIZE = 194,
593     _SC_LEVEL3_CACHE_ASSOC = 195,   593     _SC_LEVEL3_CACHE_ASSOC = 195,
594     _SC_LEVEL3_CACHE_LINESIZE = 196,   594     _SC_LEVEL3_CACHE_LINESIZE = 196,
595     _SC_LEVEL4_CACHE_SIZE = 197,   595     _SC_LEVEL4_CACHE_SIZE = 197,
596     _SC_LEVEL4_CACHE_ASSOC = 198,   596     _SC_LEVEL4_CACHE_ASSOC = 198,
597     _SC_LEVEL4_CACHE_LINESIZE = 199,   597     _SC_LEVEL4_CACHE_LINESIZE = 199,
598     _SC_IPV6 = 235,   598     _SC_IPV6 = 235,
599     _SC_RAW_SOCKETS = 236,   599     _SC_RAW_SOCKETS = 236,
600     _SC_V7_ILP32_OFF32 = 237,   600     _SC_V7_ILP32_OFF32 = 237,
601     _SC_V7_ILP32_OFFBIG = 238,   601     _SC_V7_ILP32_OFFBIG = 238,
602     _SC_V7_LP64_OFF64 = 239,   602     _SC_V7_LP64_OFF64 = 239,
603     _SC_V7_LPBIG_OFFBIG = 240,   603     _SC_V7_LPBIG_OFFBIG = 240,
604     _SC_SS_REPL_MAX = 241,   604     _SC_SS_REPL_MAX = 241,
605     _SC_TRACE_EVENT_NAME_MAX = 242,   605     _SC_TRACE_EVENT_NAME_MAX = 242,
606     _SC_TRACE_NAME_MAX = 243,   606     _SC_TRACE_NAME_MAX = 243,
607     _SC_TRACE_SYS_MAX = 244,   607     _SC_TRACE_SYS_MAX = 244,
608     _SC_TRACE_USER_EVENT_MAX = 245,   608     _SC_TRACE_USER_EVENT_MAX = 245,
609     _SC_XOPEN_STREAMS = 246,   609     _SC_XOPEN_STREAMS = 246,
610     _SC_THREAD_ROBUST_PRIO_INHERIT = 247,   610     _SC_THREAD_ROBUST_PRIO_INHERIT = 247,
611     _SC_THREAD_ROBUST_PRIO_PROTECT = 248   611     _SC_THREAD_ROBUST_PRIO_PROTECT = 248
612 } ;   612 } ;
613 enum __anonenum_29 {   613 enum __anonenum_29 {
614     _CS_PATH = 0,   614     _CS_PATH = 0,
615     _CS_V6_WIDTH_RESTRICTED_ENVS = 1,   615     _CS_V6_WIDTH_RESTRICTED_ENVS = 1,
616     _CS_GNU_LIBC_VERSION = 2,   616     _CS_GNU_LIBC_VERSION = 2,
617     _CS_GNU_LIBPTHREAD_VERSION = 3,   617     _CS_GNU_LIBPTHREAD_VERSION = 3,
618     _CS_V5_WIDTH_RESTRICTED_ENVS = 4,   618     _CS_V5_WIDTH_RESTRICTED_ENVS = 4,
619     _CS_V7_WIDTH_RESTRICTED_ENVS = 5,   619     _CS_V7_WIDTH_RESTRICTED_ENVS = 5,
620     _CS_LFS_CFLAGS = 1000,   620     _CS_LFS_CFLAGS = 1000,
621     _CS_LFS_LDFLAGS = 1001,   621     _CS_LFS_LDFLAGS = 1001,
622     _CS_LFS_LIBS = 1002,   622     _CS_LFS_LIBS = 1002,
623     _CS_LFS_LINTFLAGS = 1003,   623     _CS_LFS_LINTFLAGS = 1003,
624     _CS_LFS64_CFLAGS = 1004,   624     _CS_LFS64_CFLAGS = 1004,
625     _CS_LFS64_LDFLAGS = 1005,   625     _CS_LFS64_LDFLAGS = 1005,
626     _CS_LFS64_LIBS = 1006,   626     _CS_LFS64_LIBS = 1006,
627     _CS_LFS64_LINTFLAGS = 1007,   627     _CS_LFS64_LINTFLAGS = 1007,
628     _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,   628     _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
629     _CS_XBS5_ILP32_OFF32_LDFLAGS = 1101,   629     _CS_XBS5_ILP32_OFF32_LDFLAGS = 1101,
630     _CS_XBS5_ILP32_OFF32_LIBS = 1102,   630     _CS_XBS5_ILP32_OFF32_LIBS = 1102,
631     _CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103,   631     _CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103,
632     _CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104,   632     _CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104,
633     _CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105,   633     _CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105,
634     _CS_XBS5_ILP32_OFFBIG_LIBS = 1106,   634     _CS_XBS5_ILP32_OFFBIG_LIBS = 1106,
635     _CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107,   635     _CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107,
636     _CS_XBS5_LP64_OFF64_CFLAGS = 1108,   636     _CS_XBS5_LP64_OFF64_CFLAGS = 1108,
637     _CS_XBS5_LP64_OFF64_LDFLAGS = 1109,   637     _CS_XBS5_LP64_OFF64_LDFLAGS = 1109,
638     _CS_XBS5_LP64_OFF64_LIBS = 1110,   638     _CS_XBS5_LP64_OFF64_LIBS = 1110,
639     _CS_XBS5_LP64_OFF64_LINTFLAGS = 1111,   639     _CS_XBS5_LP64_OFF64_LINTFLAGS = 1111,
640     _CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112,   640     _CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112,
641     _CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113,   641     _CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113,
642     _CS_XBS5_LPBIG_OFFBIG_LIBS = 1114,   642     _CS_XBS5_LPBIG_OFFBIG_LIBS = 1114,
643     _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115,   643     _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115,
644     _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116,   644     _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116,
645     _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117,   645     _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117,
646     _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118,   646     _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118,
647     _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119,   647     _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119,
648     _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120,   648     _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120,
649     _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121,   649     _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121,
650     _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122,   650     _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122,
651     _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123,   651     _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123,
652     _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124,   652     _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124,
653     _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125,   653     _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125,
654     _CS_POSIX_V6_LP64_OFF64_LIBS = 1126,   654     _CS_POSIX_V6_LP64_OFF64_LIBS = 1126,
655     _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127,   655     _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127,
656     _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128,   656     _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128,
657     _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129,   657     _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129,
658     _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130,   658     _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130,
659     _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131,   659     _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131,
660     _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132,   660     _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132,
661     _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133,   661     _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133,
662     _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134,   662     _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134,
663     _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135,   663     _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135,
664     _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136,   664     _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136,
665     _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137,   665     _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137,
666     _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138,   666     _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138,
667     _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139,   667     _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139,
668     _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140,   668     _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140,
669     _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141,   669     _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141,
670     _CS_POSIX_V7_LP64_OFF64_LIBS = 1142,   670     _CS_POSIX_V7_LP64_OFF64_LIBS = 1142,
671     _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143,   671     _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143,
672     _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144,   672     _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144,
673     _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145,   673     _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145,
674     _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146,   674     _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146,
675     _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147,   675     _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147,
676     _CS_V6_ENV = 1148,   676     _CS_V6_ENV = 1148,
677     _CS_V7_ENV = 1149   677     _CS_V7_ENV = 1149
678 } ;   678 } ;
679 typedef signed char int8;   679 typedef signed char int8;
680 typedef unsigned char uint8;   680 typedef unsigned char uint8;
681 typedef short int16;   681 typedef short int16;
682 typedef unsigned short uint16;   682 typedef unsigned short uint16;
683 typedef int int32;   683 typedef int int32;
684 typedef unsigned int uint32;   684 typedef unsigned int uint32;
685 enum TIFFIgnoreSense {   685 enum TIFFIgnoreSense {
686     TIS_STORE = 0,   686     TIS_STORE = 0,
687     TIS_EXTRACT = 1,   687     TIS_EXTRACT = 1,
688     TIS_EMPTY = 2   688     TIS_EMPTY = 2
689 } ;   689 } ;
690 struct __anonstruct_TIFFHeader_30 {   690 struct __anonstruct_TIFFHeader_30 {
691    uint16 tiff_magic ;   691    uint16 tiff_magic ;
692    uint16 tiff_version ;   692    uint16 tiff_version ;
693    uint32 tiff_diroff ;   693    uint32 tiff_diroff ;
694 };   694 };
695 typedef struct __anonstruct_TIFFHeader_30 TIFFHeader;   695 typedef struct __anonstruct_TIFFHeader_30 TIFFHeader;
696 struct __anonstruct_TIFFDirEntry_31 {   696 struct __anonstruct_TIFFDirEntry_31 {
697    uint16 tdir_tag ;   697    uint16 tdir_tag ;
698    uint16 tdir_type ;   698    uint16 tdir_type ;
699    uint32 tdir_count ;   699    uint32 tdir_count ;
700    uint32 tdir_offset ;   700    uint32 tdir_offset ;
701 };   701 };
702 typedef struct __anonstruct_TIFFDirEntry_31 TIFFDirEntry;   702 typedef struct __anonstruct_TIFFDirEntry_31 TIFFDirEntry;
703 enum __anonenum_TIFFDataType_32 {   703 enum __anonenum_TIFFDataType_32 {
704     TIFF_NOTYPE = 0,   704     TIFF_NOTYPE = 0,
705     TIFF_BYTE = 1,   705     TIFF_BYTE = 1,
706     TIFF_ASCII = 2,   706     TIFF_ASCII = 2,
707     TIFF_SHORT = 3,   707     TIFF_SHORT = 3,
708     TIFF_LONG = 4,   708     TIFF_LONG = 4,
709     TIFF_RATIONAL = 5,   709     TIFF_RATIONAL = 5,
710     TIFF_SBYTE = 6,   710     TIFF_SBYTE = 6,
711     TIFF_UNDEFINED = 7,   711     TIFF_UNDEFINED = 7,
712     TIFF_SSHORT = 8,   712     TIFF_SSHORT = 8,
713     TIFF_SLONG = 9,   713     TIFF_SLONG = 9,
714     TIFF_SRATIONAL = 10,   714     TIFF_SRATIONAL = 10,
715     TIFF_FLOAT = 11,   715     TIFF_FLOAT = 11,
716     TIFF_DOUBLE = 12,   716     TIFF_DOUBLE = 12,
717     TIFF_IFD = 13   717     TIFF_IFD = 13
718 } ;   718 } ;
719 typedef enum __anonenum_TIFFDataType_32 TIFFDataType;   719 typedef enum __anonenum_TIFFDataType_32 TIFFDataType;
720 struct tiff;   720 struct tiff;
721 typedef struct tiff TIFF;   721 typedef struct tiff TIFF;
722 typedef uint32 ttag_t;   722 typedef uint32 ttag_t;
723 typedef uint16 tdir_t;   723 typedef uint16 tdir_t;
724 typedef uint16 tsample_t;   724 typedef uint16 tsample_t;
725 typedef uint32 tstrip_t;   725 typedef uint32 tstrip_t;
726 typedef uint32 ttile_t;   726 typedef uint32 ttile_t;
727 typedef int32 tsize_t;   727 typedef int32 tsize_t;
728 typedef void *tdata_t;   728 typedef void *tdata_t;
729 typedef uint32 toff_t;   729 typedef uint32 toff_t;
730 typedef void *thandle_t;   730 typedef void *thandle_t;
731 typedef unsigned char TIFFRGBValue;   731 typedef unsigned char TIFFRGBValue;
732 struct __anonstruct_TIFFDisplay_33 {   732 struct __anonstruct_TIFFDisplay_33 {
733    float d_mat[3][3] ;   733    float d_mat[3][3] ;
734    float d_YCR ;   734    float d_YCR ;
735    float d_YCG ;   735    float d_YCG ;
736    float d_YCB ;   736    float d_YCB ;
737    uint32 d_Vrwr ;   737    uint32 d_Vrwr ;
738    uint32 d_Vrwg ;   738    uint32 d_Vrwg ;
739    uint32 d_Vrwb ;   739    uint32 d_Vrwb ;
740    float d_Y0R ;   740    float d_Y0R ;
741    float d_Y0G ;   741    float d_Y0G ;
742    float d_Y0B ;   742    float d_Y0B ;
743    float d_gammaR ;   743    float d_gammaR ;
744    float d_gammaG ;   744    float d_gammaG ;
745    float d_gammaB ;   745    float d_gammaB ;
746 };   746 };
747 typedef struct __anonstruct_TIFFDisplay_33 TIFFDisplay;   747 typedef struct __anonstruct_TIFFDisplay_33 TIFFDisplay;
748 struct __anonstruct_TIFFYCbCrToRGB_34 {   748 struct __anonstruct_TIFFYCbCrToRGB_34 {
749    TIFFRGBValue *clamptab ;   749    TIFFRGBValue *clamptab ;
750    int *Cr_r_tab ;   750    int *Cr_r_tab ;
751    int *Cb_b_tab ;   751    int *Cb_b_tab ;
752    int32 *Cr_g_tab ;   752    int32 *Cr_g_tab ;
753    int32 *Cb_g_tab ;   753    int32 *Cb_g_tab ;
754    int32 *Y_tab ;   754    int32 *Y_tab ;
755 };   755 };
756 typedef struct __anonstruct_TIFFYCbCrToRGB_34 TIFFYCbCrToRGB;   756 typedef struct __anonstruct_TIFFYCbCrToRGB_34 TIFFYCbCrToRGB;
757 struct __anonstruct_TIFFCIELabToRGB_35 {   757 struct __anonstruct_TIFFCIELabToRGB_35 {
758    int range ;   758    int range ;
759    float rstep ;   759    float rstep ;
760    float gstep ;   760    float gstep ;
761    float bstep ;   761    float bstep ;
762    float X0 ;   762    float X0 ;
763    float Y0 ;   763    float Y0 ;
764    float Z0 ;   764    float Z0 ;
765    TIFFDisplay display ;   765    TIFFDisplay display ;
766    float Yr2r[1501] ;   766    float Yr2r[1501] ;
767    float Yg2g[1501] ;   767    float Yg2g[1501] ;
768    float Yb2b[1501] ;   768    float Yb2b[1501] ;
769 };   769 };
770 typedef struct __anonstruct_TIFFCIELabToRGB_35 TIFFCIELabToRGB;   770 typedef struct __anonstruct_TIFFCIELabToRGB_35 TIFFCIELabToRGB;
771 struct _TIFFRGBAImage;   771 struct _TIFFRGBAImage;
772 typedef struct _TIFFRGBAImage TIFFRGBAImage;   772 typedef struct _TIFFRGBAImage TIFFRGBAImage;
773 typedef void (*tileContigRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,   773 typedef void (*tileContigRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,
774                                   uint32  , uint32  , uint32  , int32  ,   774                                   uint32  , uint32  , uint32  , int32  ,
775                                   int32  , unsigned char * );   775                                   int32  , unsigned char * );
776 typedef void (*tileSeparateRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,   776 typedef void (*tileSeparateRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,
777                                     uint32  , uint32  , uint32  , int32  ,   777                                     uint32  , uint32  , uint32  , int32  ,
778                                     int32  , unsigned char * , unsigned char * ,   778                                     int32  , unsigned char * , unsigned char * ,
779                                     unsigned char * , unsigned char * );   779                                     unsigned char * , unsigned char * );
780 union __anonunion_put_36 {   780 union __anonunion_put_36 {
781    void (*any)(TIFFRGBAImage * ) ;   781    void (*any)(TIFFRGBAImage * ) ;
782    void (*contig)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,   782    void (*contig)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,
783                   uint32  , int32  , int32  , unsigned char * ) ;   783                   uint32  , int32  , int32  , unsigned char * ) ;
784    void (*separate)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,   784    void (*separate)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,
785                     uint32  , int32  , int32  , unsigned char * ,   785                     uint32  , int32  , int32  , unsigned char * ,
786                     unsigned char * , unsigned char * , unsigned char * ) ;   786                     unsigned char * , unsigned char * , unsigned char * ) ;
787 };   787 };
788 struct _TIFFRGBAImage {   788 struct _TIFFRGBAImage {
789    TIFF *tif ;   789    TIFF *tif ;
790    int stoponerr ;   790    int stoponerr ;
791    int isContig ;   791    int isContig ;
792    int alpha ;   792    int alpha ;
793    uint32 width ;   793    uint32 width ;
794    uint32 height ;   794    uint32 height ;
795    uint16 bitspersample ;   795    uint16 bitspersample ;
796    uint16 samplesperpixel ;   796    uint16 samplesperpixel ;
797    uint16 orientation ;   797    uint16 orientation ;
798    uint16 req_orientation ;   798    uint16 req_orientation ;
799    uint16 photometric ;   799    uint16 photometric ;
800    uint16 *redcmap ;   800    uint16 *redcmap ;
801    uint16 *greencmap ;   801    uint16 *greencmap ;
802    uint16 *bluecmap ;   802    uint16 *bluecmap ;
803    int (*get)(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;   803    int (*get)(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;
804    union __anonunion_put_36 put ;   804    union __anonunion_put_36 put ;
805    TIFFRGBValue *Map ;   805    TIFFRGBValue *Map ;
806    uint32 **BWmap ;   806    uint32 **BWmap ;
807    uint32 **PALmap ;   807    uint32 **PALmap ;
808    TIFFYCbCrToRGB *ycbcr ;   808    TIFFYCbCrToRGB *ycbcr ;
809    TIFFCIELabToRGB *cielab ;   809    TIFFCIELabToRGB *cielab ;
810    int row_offset ;   810    int row_offset ;
811    int col_offset ;   811    int col_offset ;
812 };   812 };
813 typedef int (*TIFFInitMethod)(TIFF * , int  );   813 typedef int (*TIFFInitMethod)(TIFF * , int  );
814 struct __anonstruct_TIFFCodec_37 {   814 struct __anonstruct_TIFFCodec_37 {
815    char *name ;   815    char *name ;
816    uint16 scheme ;   816    uint16 scheme ;
817    int (*init)(TIFF * , int  ) ;   817    int (*init)(TIFF * , int  ) ;
818 };   818 };
819 typedef struct __anonstruct_TIFFCodec_37 TIFFCodec;   819 typedef struct __anonstruct_TIFFCodec_37 TIFFCodec;
820 typedef void (*TIFFErrorHandler)(char const   * , char const   * , va_list  );   820 typedef void (*TIFFErrorHandler)(char const   * , char const   * , va_list  );
821 typedef tsize_t (*TIFFReadWriteProc)(thandle_t  , tdata_t  , tsize_t  );   821 typedef tsize_t (*TIFFReadWriteProc)(thandle_t  , tdata_t  , tsize_t  );
822 typedef toff_t (*TIFFSeekProc)(thandle_t  , toff_t  , int  );   822 typedef toff_t (*TIFFSeekProc)(thandle_t  , toff_t  , int  );
823 typedef int (*TIFFCloseProc)(thandle_t  );   823 typedef int (*TIFFCloseProc)(thandle_t  );
824 typedef toff_t (*TIFFSizeProc)(thandle_t  );   824 typedef toff_t (*TIFFSizeProc)(thandle_t  );
825 typedef int (*TIFFMapFileProc)(thandle_t  , tdata_t * , toff_t * );   825 typedef int (*TIFFMapFileProc)(thandle_t  , tdata_t * , toff_t * );
826 typedef void (*TIFFUnmapFileProc)(thandle_t  , tdata_t  , toff_t  );   826 typedef void (*TIFFUnmapFileProc)(thandle_t  , tdata_t  , toff_t  );
827 typedef void (*TIFFExtendProc)(TIFF * );   827 typedef void (*TIFFExtendProc)(TIFF * );
828 struct __anonstruct_TIFFFieldInfo_38 {   828 struct __anonstruct_TIFFFieldInfo_38 {
829    ttag_t field_tag ;   829    ttag_t field_tag ;
830    short field_readcount ;   830    short field_readcount ;
831    short field_writecount ;   831    short field_writecount ;
832    TIFFDataType field_type ;   832    TIFFDataType field_type ;
833    unsigned short field_bit ;   833    unsigned short field_bit ;
834    unsigned char field_oktochange ;   834    unsigned char field_oktochange ;
835    unsigned char field_passcount ;   835    unsigned char field_passcount ;
836    char *field_name ;   836    char *field_name ;
837 };   837 };
838 typedef struct __anonstruct_TIFFFieldInfo_38 TIFFFieldInfo;   838 typedef struct __anonstruct_TIFFFieldInfo_38 TIFFFieldInfo;
839 struct _TIFFTagValue {   839 struct _TIFFTagValue {
840    TIFFFieldInfo const   *info ;   840    TIFFFieldInfo const   *info ;
841    int count ;   841    int count ;
842    void *value ;   842    void *value ;
843 };   843 };
844 typedef struct _TIFFTagValue TIFFTagValue;   844 typedef struct _TIFFTagValue TIFFTagValue;
845 typedef int (*TIFFVSetMethod)(TIFF * , ttag_t  , va_list  );   845 typedef int (*TIFFVSetMethod)(TIFF * , ttag_t  , va_list  );
846 typedef int (*TIFFVGetMethod)(TIFF * , ttag_t  , va_list  );   846 typedef int (*TIFFVGetMethod)(TIFF * , ttag_t  , va_list  );
847 typedef void (*TIFFPrintMethod)(TIFF * , FILE * , long  );   847 typedef void (*TIFFPrintMethod)(TIFF * , FILE * , long  );
848 struct __anonstruct_TIFFTagMethods_39 {   848 struct __anonstruct_TIFFTagMethods_39 {
849    int (*vsetfield)(TIFF * , ttag_t  , va_list  ) ;   849    int (*vsetfield)(TIFF * , ttag_t  , va_list  ) ;
850    int (*vgetfield)(TIFF * , ttag_t  , va_list  ) ;   850    int (*vgetfield)(TIFF * , ttag_t  , va_list  ) ;
851    void (*printdir)(TIFF * , FILE * , long  ) ;   851    void (*printdir)(TIFF * , FILE * , long  ) ;
852 };   852 };
853 typedef struct __anonstruct_TIFFTagMethods_39 TIFFTagMethods;   853 typedef struct __anonstruct_TIFFTagMethods_39 TIFFTagMethods;
854 struct cpTag {   854 struct cpTag {
855    uint16 tag ;   855    uint16 tag ;
856    uint16 count ;   856    uint16 count ;
857    TIFFDataType type ;   857    TIFFDataType type ;
858 };   858 };
859 typedef int (*copyFunc)(TIFF *in , TIFF *out , uint32 l , uint32 w ,   859 typedef int (*copyFunc)(TIFF *in , TIFF *out , uint32 l , uint32 w ,
860                         uint16 samplesperpixel );   860                         uint16 samplesperpixel );
861 typedef int (*readFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );   861 typedef int (*readFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );
862 typedef int (*writeFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );   862 typedef int (*writeFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );
863 typedef void biasFn(void *image , void *bias , uint32 pixels );   863 typedef void biasFn(void *image , void *bias , uint32 pixels );
864 extern struct _IO_FILE_plus _IO_2_1_stdin_ ;   864 extern struct _IO_FILE_plus _IO_2_1_stdin_ ;
865 extern struct _IO_FILE_plus _IO_2_1_stdout_ ;   865 extern struct _IO_FILE_plus _IO_2_1_stdout_ ;
866 extern struct _IO_FILE_plus _IO_2_1_stderr_ ;   866 extern struct _IO_FILE_plus _IO_2_1_stderr_ ;
867 extern int __underflow(_IO_FILE * ) ;   867 extern int __underflow(_IO_FILE * ) ;
868 extern int __uflow(_IO_FILE * ) ;   868 extern int __uflow(_IO_FILE * ) ;
869 extern int __overflow(_IO_FILE * , int  ) ;   869 extern int __overflow(_IO_FILE * , int  ) ;
870 extern int _IO_getc(_IO_FILE *__fp ) ;   870 extern int _IO_getc(_IO_FILE *__fp ) ;
871 extern int _IO_putc(int __c , _IO_FILE *__fp ) ;   871 extern int _IO_putc(int __c , _IO_FILE *__fp ) ;
872 extern  __attribute__((__nothrow__)) int _IO_feof(_IO_FILE *__fp ) ;   872 extern  __attribute__((__nothrow__)) int _IO_feof(_IO_FILE *__fp ) ;
873 extern  __attribute__((__nothrow__)) int _IO_ferror(_IO_FILE *__fp ) ;   873 extern  __attribute__((__nothrow__)) int _IO_ferror(_IO_FILE *__fp ) ;
874 extern int _IO_peekc_locked(_IO_FILE *__fp ) ;   874 extern int _IO_peekc_locked(_IO_FILE *__fp ) ;
875 extern  __attribute__((__nothrow__)) void _IO_flockfile(_IO_FILE * ) ;   875 extern  __attribute__((__nothrow__)) void _IO_flockfile(_IO_FILE * ) ;
876 extern  __attribute__((__nothrow__)) void _IO_funlockfile(_IO_FILE * ) ;   876 extern  __attribute__((__nothrow__)) void _IO_funlockfile(_IO_FILE * ) ;
877 extern  __attribute__((__nothrow__)) int _IO_ftrylockfile(_IO_FILE * ) ;   877 extern  __attribute__((__nothrow__)) int _IO_ftrylockfile(_IO_FILE * ) ;
878 extern int _IO_vfscanf(_IO_FILE * __restrict   , char const   * __restrict   ,   878 extern int _IO_vfscanf(_IO_FILE * __restrict   , char const   * __restrict   ,
879                        __gnuc_va_list  , int * __restrict   ) ;   879                        __gnuc_va_list  , int * __restrict   ) ;
880 extern int _IO_vfprintf(_IO_FILE * __restrict   , char const   * __restrict   ,   880 extern int _IO_vfprintf(_IO_FILE * __restrict   , char const   * __restrict   ,
881                         __gnuc_va_list  ) ;   881                         __gnuc_va_list  ) ;
882 extern __ssize_t _IO_padn(_IO_FILE * , int  , __ssize_t  ) ;   882 extern __ssize_t _IO_padn(_IO_FILE * , int  , __ssize_t  ) ;
883 extern size_t _IO_sgetn(_IO_FILE * , void * , size_t  ) ;   883 extern size_t _IO_sgetn(_IO_FILE * , void * , size_t  ) ;
884 extern __off64_t _IO_seekoff(_IO_FILE * , __off64_t  , int  , int  ) ;   884 extern __off64_t _IO_seekoff(_IO_FILE * , __off64_t  , int  , int  ) ;
885 extern __off64_t _IO_seekpos(_IO_FILE * , __off64_t  , int  ) ;   885 extern __off64_t _IO_seekpos(_IO_FILE * , __off64_t  , int  ) ;
886 extern  __attribute__((__nothrow__)) void _IO_free_backup_area(_IO_FILE * ) ;   886 extern  __attribute__((__nothrow__)) void _IO_free_backup_area(_IO_FILE * ) ;
887 extern struct _IO_FILE *stdin ;   887 extern struct _IO_FILE *stdin ;
888 extern struct _IO_FILE *stdout ;   888 extern struct _IO_FILE *stdout ;
889 extern struct _IO_FILE *stderr ;   889 extern struct _IO_FILE *stderr ;
890 extern  __attribute__((__nothrow__)) int remove(char const   *__filename ) ;   890 extern  __attribute__((__nothrow__)) int remove(char const   *__filename ) ;
891 extern  __attribute__((__nothrow__)) int rename(char const   *__old ,   891 extern  __attribute__((__nothrow__)) int rename(char const   *__old ,
892                                                 char const   *__new ) ;   892                                                 char const   *__new ) ;
893 extern  __attribute__((__nothrow__)) int renameat(int __oldfd ,   893 extern  __attribute__((__nothrow__)) int renameat(int __oldfd ,
894                                                   char const   *__old ,   894                                                   char const   *__old ,
895                                                   int __newfd ,   895                                                   int __newfd ,
896                                                   char const   *__new ) ;   896                                                   char const   *__new ) ;
897 extern FILE *tmpfile(void)  __asm__("tmpfile64")  ;   897 extern FILE *tmpfile(void)  __asm__("tmpfile64")  ;
898 extern  __attribute__((__nothrow__)) char *tmpnam(char *__s ) ;   898 extern  __attribute__((__nothrow__)) char *tmpnam(char *__s ) ;
899 extern  __attribute__((__nothrow__)) char *tmpnam_r(char *__s ) ;   899 extern  __attribute__((__nothrow__)) char *tmpnam_r(char *__s ) ;
900 extern  __attribute__((__nothrow__)) char *tempnam(char const   *__dir ,   900 extern  __attribute__((__nothrow__)) char *tempnam(char const   *__dir ,
901                                                    char const   *__pfx )  __attribute__((__malloc__)) ;   901                                                    char const   *__pfx )  __attribute__((__malloc__)) ;
902 extern int fclose(FILE *__stream ) ;   902 extern int fclose(FILE *__stream ) ;
903 extern int fflush(FILE *__stream ) ;   903 extern int fflush(FILE *__stream ) ;
904 extern int fflush_unlocked(FILE *__stream ) ;   904 extern int fflush_unlocked(FILE *__stream ) ;
905 extern FILE *fopen(char const   * __restrict  __filename ,   905 extern FILE *fopen(char const   * __restrict  __filename ,
906                    char const   * __restrict  __modes )  __asm__("fopen64")  ;   906                    char const   * __restrict  __modes )  __asm__("fopen64")  ;
907 extern FILE *freopen(char const   * __restrict  __filename ,   907 extern FILE *freopen(char const   * __restrict  __filename ,
908                      char const   * __restrict  __modes ,   908                      char const   * __restrict  __modes ,
909                      FILE * __restrict  __stream )  __asm__("freopen64")  ;   909                      FILE * __restrict  __stream )  __asm__("freopen64")  ;
910 extern  __attribute__((__nothrow__)) FILE *fdopen(int __fd ,   910 extern  __attribute__((__nothrow__)) FILE *fdopen(int __fd ,
911                                                   char const   *__modes ) ;   911                                                   char const   *__modes ) ;
912 extern  __attribute__((__nothrow__)) FILE *fmemopen(void *__s , size_t __len ,   912 extern  __attribute__((__nothrow__)) FILE *fmemopen(void *__s , size_t __len ,
913                                                     char const   *__modes ) ;   913                                                     char const   *__modes ) ;
914 extern  __attribute__((__nothrow__)) FILE *open_memstream(char **__bufloc ,   914 extern  __attribute__((__nothrow__)) FILE *open_memstream(char **__bufloc ,
915                                                           size_t *__sizeloc ) ;   915                                                           size_t *__sizeloc ) ;
916 extern  __attribute__((__nothrow__)) void setbuf(FILE * __restrict  __stream ,   916 extern  __attribute__((__nothrow__)) void setbuf(FILE * __restrict  __stream ,
917                                                  char * __restrict  __buf ) ;   917                                                  char * __restrict  __buf ) ;
918 extern  __attribute__((__nothrow__)) int setvbuf(FILE * __restrict  __stream ,   918 extern  __attribute__((__nothrow__)) int setvbuf(FILE * __restrict  __stream ,
919                                                  char * __restrict  __buf ,   919                                                  char * __restrict  __buf ,
920                                                  int __modes , size_t __n ) ;   920                                                  int __modes , size_t __n ) ;
921 extern  __attribute__((__nothrow__)) void setbuffer(FILE * __restrict  __stream ,   921 extern  __attribute__((__nothrow__)) void setbuffer(FILE * __restrict  __stream ,
922                                                     char * __restrict  __buf ,   922                                                     char * __restrict  __buf ,
923                                                     size_t __size ) ;   923                                                     size_t __size ) ;
924 extern  __attribute__((__nothrow__)) void setlinebuf(FILE *__stream ) ;   924 extern  __attribute__((__nothrow__)) void setlinebuf(FILE *__stream ) ;
925 extern int fprintf(FILE * __restrict  __stream ,   925 extern int fprintf(FILE * __restrict  __stream ,
926                    char const   * __restrict  __format  , ...) ;   926                    char const   * __restrict  __format  , ...) ;
927 extern int printf(char const   * __restrict  __format  , ...) ;   927 extern int printf(char const   * __restrict  __format  , ...) ;
928 extern  __attribute__((__nothrow__)) int sprintf(char * __restrict  __s ,   928 extern  __attribute__((__nothrow__)) int sprintf(char * __restrict  __s ,
929                                                  char const   * __restrict  __format   929                                                  char const   * __restrict  __format
930                                                  , ...) ;   930                                                  , ...) ;
931 extern int vfprintf(FILE * __restrict  __s ,   931 extern int vfprintf(FILE * __restrict  __s ,
932                     char const   * __restrict  __format , __gnuc_va_list __arg ) ;   932                     char const   * __restrict  __format , __gnuc_va_list __arg ) ;
933 __inline extern int vprintf(char const   * __restrict  __fmt ,   933 __inline extern int vprintf(char const   * __restrict  __fmt ,
934                             __gnuc_va_list __arg ) ;   934                             __gnuc_va_list __arg ) ;
935 extern  __attribute__((__nothrow__)) int vsprintf(char * __restrict  __s ,   935 extern  __attribute__((__nothrow__)) int vsprintf(char * __restrict  __s ,
936                                                   char const   * __restrict  __format ,   936                                                   char const   * __restrict  __format ,
937                                                   __gnuc_va_list __arg ) ;   937                                                   __gnuc_va_list __arg ) ;
938 extern  __attribute__((__nothrow__)) int ( /* format attribute */  snprintf)(char * __restrict  __s ,   938 extern  __attribute__((__nothrow__)) int ( /* format attribute */  snprintf)(char * __restrict  __s ,
939                                                                              size_t __maxlen ,   939                                                                              size_t __maxlen ,
940                                                                              char const   * __restrict  __format   940                                                                              char const   * __restrict  __format
941                                                                              , ...) ;   941                                                                              , ...) ;
942 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsnprintf)(char * __restrict  __s ,   942 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsnprintf)(char * __restrict  __s ,
943                                                                               size_t __maxlen ,   943                                                                               size_t __maxlen ,
944                                                                               char const   * __restrict  __format ,   944                                                                               char const   * __restrict  __format ,
945                                                                               __gnuc_va_list __arg ) ;   945                                                                               __gnuc_va_list __arg ) ;
946 extern int ( /* format attribute */  vdprintf)(int __fd ,   946 extern int ( /* format attribute */  vdprintf)(int __fd ,
947                                                char const   * __restrict  __fmt ,   947                                                char const   * __restrict  __fmt ,
948                                                __gnuc_va_list __arg ) ;   948                                                __gnuc_va_list __arg ) ;
949 extern int ( /* format attribute */  dprintf)(int __fd ,   949 extern int ( /* format attribute */  dprintf)(int __fd ,
950                                               char const   * __restrict  __fmt   950                                               char const   * __restrict  __fmt
951                                               , ...) ;   951                                               , ...) ;
952 extern int fscanf(FILE * __restrict  __stream ,   952 extern int fscanf(FILE * __restrict  __stream ,
953                   char const   * __restrict  __format  , ...)  __asm__("__isoc99_fscanf")  ;   953                   char const   * __restrict  __format  , ...)  __asm__("__isoc99_fscanf")  ;
954 extern int scanf(char const   * __restrict  __format  , ...)  __asm__("__isoc99_scanf")  ;   954 extern int scanf(char const   * __restrict  __format  , ...)  __asm__("__isoc99_scanf")  ;
955 extern  __attribute__((__nothrow__)) int sscanf(char const   * __restrict  __s ,   955 extern  __attribute__((__nothrow__)) int sscanf(char const   * __restrict  __s ,
956                                                 char const   * __restrict  __format   956                                                 char const   * __restrict  __format
957                                                 , ...)  __asm__("__isoc99_sscanf")  ;   957                                                 , ...)  __asm__("__isoc99_sscanf")  ;
958 extern int ( /* format attribute */  vfscanf)(FILE * __restrict  __s ,   958 extern int ( /* format attribute */  vfscanf)(FILE * __restrict  __s ,
959                                               char const   * __restrict  __format ,   959                                               char const   * __restrict  __format ,
960                                               __gnuc_va_list __arg )  __asm__("__isoc99_vfscanf")  ;   960                                               __gnuc_va_list __arg )  __asm__("__isoc99_vfscanf")  ;
961 extern int ( /* format attribute */  vscanf)(char const   * __restrict  __format ,   961 extern int ( /* format attribute */  vscanf)(char const   * __restrict  __format ,
962                                              __gnuc_va_list __arg )  __asm__("__isoc99_vscanf")  ;   962                                              __gnuc_va_list __arg )  __asm__("__isoc99_vscanf")  ;
963 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsscanf)(char const   * __restrict  __s ,   963 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsscanf)(char const   * __restrict  __s ,
964                                                                             char const   * __restrict  __format ,   964                                                                             char const   * __restrict  __format ,
965                                                                             __gnuc_va_list __arg )  __asm__("__isoc99_vsscanf")  ;   965                                                                             __gnuc_va_list __arg )  __asm__("__isoc99_vsscanf")  ;
966 extern int fgetc(FILE *__stream ) ;   966 extern int fgetc(FILE *__stream ) ;
967 extern int getc(FILE *__stream ) ;   967 extern int getc(FILE *__stream ) ;
968 __inline extern int getchar(void) ;   968 __inline extern int getchar(void) ;
969 __inline extern int getc_unlocked(FILE *__fp ) ;   969 __inline extern int getc_unlocked(FILE *__fp ) ;
970 __inline extern int getchar_unlocked(void) ;   970 __inline extern int getchar_unlocked(void) ;
971 __inline extern int fgetc_unlocked(FILE *__fp ) ;   971 __inline extern int fgetc_unlocked(FILE *__fp ) ;
972 extern int fputc(int __c , FILE *__stream ) ;   972 extern int fputc(int __c , FILE *__stream ) ;
973 extern int putc(int __c , FILE *__stream ) ;   973 extern int putc(int __c , FILE *__stream ) ;
974 __inline extern int putchar(int __c ) ;   974 __inline extern int putchar(int __c ) ;
975 __inline extern int fputc_unlocked(int __c , FILE *__stream ) ;   975 __inline extern int fputc_unlocked(int __c , FILE *__stream ) ;
976 __inline extern int putc_unlocked(int __c , FILE *__stream ) ;   976 __inline extern int putc_unlocked(int __c , FILE *__stream ) ;
977 __inline extern int putchar_unlocked(int __c ) ;   977 __inline extern int putchar_unlocked(int __c ) ;
978 extern int getw(FILE *__stream ) ;   978 extern int getw(FILE *__stream ) ;
979 extern int putw(int __w , FILE *__stream ) ;   979 extern int putw(int __w , FILE *__stream ) ;
980 extern char *fgets(char * __restrict  __s , int __n ,   980 extern char *fgets(char * __restrict  __s , int __n ,
981                    FILE * __restrict  __stream ) ;   981                    FILE * __restrict  __stream ) ;
982 extern char *gets(char *__s ) ;   982 extern char *gets(char *__s ) ;
983 extern __ssize_t __getdelim(char ** __restrict  __lineptr ,   983 extern __ssize_t __getdelim(char ** __restrict  __lineptr ,
984                             size_t * __restrict  __n , int __delimiter ,   984                             size_t * __restrict  __n , int __delimiter ,
985                             FILE * __restrict  __stream ) ;   985                             FILE * __restrict  __stream ) ;
986 extern __ssize_t getdelim(char ** __restrict  __lineptr ,   986 extern __ssize_t getdelim(char ** __restrict  __lineptr ,
987                           size_t * __restrict  __n , int __delimiter ,   987                           size_t * __restrict  __n , int __delimiter ,
988                           FILE * __restrict  __stream ) ;   988                           FILE * __restrict  __stream ) ;
989 extern __ssize_t getline(char ** __restrict  __lineptr ,   989 extern __ssize_t getline(char ** __restrict  __lineptr ,
990                          size_t * __restrict  __n , FILE * __restrict  __stream ) ;   990                          size_t * __restrict  __n , FILE * __restrict  __stream ) ;
991 extern int fputs(char const   * __restrict  __s , FILE * __restrict  __stream ) ;   991 extern int fputs(char const   * __restrict  __s , FILE * __restrict  __stream ) ;
992 extern int puts(char const   *__s ) ;   992 extern int puts(char const   *__s ) ;
993 extern int ungetc(int __c , FILE *__stream ) ;   993 extern int ungetc(int __c , FILE *__stream ) ;
994 extern size_t fread(void * __restrict  __ptr , size_t __size , size_t __n ,   994 extern size_t fread(void * __restrict  __ptr , size_t __size , size_t __n ,
995                     FILE * __restrict  __stream ) ;   995                     FILE * __restrict  __stream ) ;
996 extern size_t fwrite(void const   * __restrict  __ptr , size_t __size ,   996 extern size_t fwrite(void const   * __restrict  __ptr , size_t __size ,
997                      size_t __n , FILE * __restrict  __s ) ;   997                      size_t __n , FILE * __restrict  __s ) ;
998 extern size_t fread_unlocked(void * __restrict  __ptr , size_t __size ,   998 extern size_t fread_unlocked(void * __restrict  __ptr , size_t __size ,
999                              size_t __n , FILE * __restrict  __stream ) ;   999                              size_t __n , FILE * __restrict  __stream ) ;
1000 extern size_t fwrite_unlocked(void const   * __restrict  __ptr , size_t __size ,   1000 extern size_t fwrite_unlocked(void const   * __restrict  __ptr , size_t __size ,
1001                               size_t __n , FILE * __restrict  __stream ) ;   1001                               size_t __n , FILE * __restrict  __stream ) ;
1002 extern int fseek(FILE *__stream , long __off , int __whence ) ;   1002 extern int fseek(FILE *__stream , long __off , int __whence ) ;
1003 extern long ftell(FILE *__stream ) ;   1003 extern long ftell(FILE *__stream ) ;
1004 extern void rewind(FILE *__stream ) ;   1004 extern void rewind(FILE *__stream ) ;
1005 extern int fseeko(FILE *__stream , __off64_t __off , int __whence )  __asm__("fseeko64")  ;   1005 extern int fseeko(FILE *__stream , __off64_t __off , int __whence )  __asm__("fseeko64")  ;
1006 extern __off64_t ftello(FILE *__stream )  __asm__("ftello64")  ;   1006 extern __off64_t ftello(FILE *__stream )  __asm__("ftello64")  ;
1007 extern int fgetpos(FILE * __restrict  __stream , fpos_t * __restrict  __pos )  __asm__("fgetpos64")  ;   1007 extern int fgetpos(FILE * __restrict  __stream , fpos_t * __restrict  __pos )  __asm__("fgetpos64")  ;
1008 extern int fsetpos(FILE *__stream , fpos_t const   *__pos )  __asm__("fsetpos64")  ;   1008 extern int fsetpos(FILE *__stream , fpos_t const   *__pos )  __asm__("fsetpos64")  ;
1009 extern  __attribute__((__nothrow__)) void clearerr(FILE *__stream ) ;   1009 extern  __attribute__((__nothrow__)) void clearerr(FILE *__stream ) ;
1010 extern  __attribute__((__nothrow__)) int feof(FILE *__stream ) ;   1010 extern  __attribute__((__nothrow__)) int feof(FILE *__stream ) ;
1011 extern  __attribute__((__nothrow__)) int ferror(FILE *__stream ) ;   1011 extern  __attribute__((__nothrow__)) int ferror(FILE *__stream ) ;
1012 extern  __attribute__((__nothrow__)) void clearerr_unlocked(FILE *__stream ) ;   1012 extern  __attribute__((__nothrow__)) void clearerr_unlocked(FILE *__stream ) ;
1013 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;   1013 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;
1014 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;   1014 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;
1015 extern void perror(char const   *__s ) ;   1015 extern void perror(char const   *__s ) ;
1016 extern int sys_nerr ;   1016 extern int sys_nerr ;
1017 extern char const   * const  sys_errlist[] ;   1017 extern char const   * const  sys_errlist[] ;
1018 extern  __attribute__((__nothrow__)) int fileno(FILE *__stream ) ;   1018 extern  __attribute__((__nothrow__)) int fileno(FILE *__stream ) ;
1019 extern  __attribute__((__nothrow__)) int fileno_unlocked(FILE *__stream ) ;   1019 extern  __attribute__((__nothrow__)) int fileno_unlocked(FILE *__stream ) ;
1020 extern FILE *popen(char const   *__command , char const   *__modes ) ;   1020 extern FILE *popen(char const   *__command , char const   *__modes ) ;
1021 extern int pclose(FILE *__stream ) ;   1021 extern int pclose(FILE *__stream ) ;
1022 extern  __attribute__((__nothrow__)) char *ctermid(char *__s ) ;   1022 extern  __attribute__((__nothrow__)) char *ctermid(char *__s ) ;
1023 extern  __attribute__((__nothrow__)) void flockfile(FILE *__stream ) ;   1023 extern  __attribute__((__nothrow__)) void flockfile(FILE *__stream ) ;
1024 extern  __attribute__((__nothrow__)) int ftrylockfile(FILE *__stream ) ;   1024 extern  __attribute__((__nothrow__)) int ftrylockfile(FILE *__stream ) ;
1025 extern  __attribute__((__nothrow__)) void funlockfile(FILE *__stream ) ;   1025 extern  __attribute__((__nothrow__)) void funlockfile(FILE *__stream ) ;
1026 __inline extern int vprintf(char const   * __restrict  __fmt ,   1026 __inline extern int vprintf(char const   * __restrict  __fmt ,
1027                             __gnuc_va_list __arg )   1027                             __gnuc_va_list __arg )
1028 {   1028 {
1029   int tmp ;   1029   int tmp ;
1030     1030  
1031   {   1031   {
1032   tmp = vfprintf((FILE */* __restrict  */)stdout, __fmt, __arg);   1032   tmp = vfprintf((FILE */* __restrict  */)stdout, __fmt, __arg);
1033   return (tmp);   1033   return (tmp);
1034 }   1034 }
1035 }   1035 }
1036 __inline extern int getchar(void)   1036 __inline extern int getchar(void)
1037 {   1037 {
1038   int tmp ;   1038   int tmp ;
1039     1039  
1040   {   1040   {
1041   tmp = _IO_getc(stdin);   1041   tmp = _IO_getc(stdin);
1042   return (tmp);   1042   return (tmp);
1043 }   1043 }
1044 }   1044 }
1045 __inline extern int fgetc_unlocked(FILE *__fp )   1045 __inline extern int fgetc_unlocked(FILE *__fp )
1046 {   1046 {
1047   long tmp ;   1047   long tmp ;
1048   int tmp___0 ;   1048   int tmp___0 ;
1049   char *tmp___1 ;   1049   char *tmp___1 ;
1050   int tmp___2 ;   1050   int tmp___2 ;
1051   long tmp___3 ;   1051   long tmp___3 ;
1052     1052  
1053   {   1053   {
1054   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),   1054   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),
1055                              0L);   1055                              0L);
1056   if (tmp___3) {   1056   if (tmp___3) {
1057     tmp___0 = __uflow(__fp);   1057     tmp___0 = __uflow(__fp);
1058     tmp___2 = tmp___0;   1058     tmp___2 = tmp___0;
1059   } else {   1059   } else {
1060     tmp___1 = __fp->_IO_read_ptr;   1060     tmp___1 = __fp->_IO_read_ptr;
1061     (__fp->_IO_read_ptr) ++;   1061     (__fp->_IO_read_ptr) ++;
1062     tmp___2 = (int )*((unsigned char *)tmp___1);   1062     tmp___2 = (int )*((unsigned char *)tmp___1);
1063   }   1063   }
1064   return (tmp___2);   1064   return (tmp___2);
1065 }   1065 }
1066 }   1066 }
1067 __inline extern int getc_unlocked(FILE *__fp )   1067 __inline extern int getc_unlocked(FILE *__fp )
1068 {   1068 {
1069   long tmp ;   1069   long tmp ;
1070   int tmp___0 ;   1070   int tmp___0 ;
1071   char *tmp___1 ;   1071   char *tmp___1 ;
1072   int tmp___2 ;   1072   int tmp___2 ;
1073   long tmp___3 ;   1073   long tmp___3 ;
1074     1074  
1075   {   1075   {
1076   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),   1076   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),
1077                              0L);   1077                              0L);
1078   if (tmp___3) {   1078   if (tmp___3) {
1079     tmp___0 = __uflow(__fp);   1079     tmp___0 = __uflow(__fp);
1080     tmp___2 = tmp___0;   1080     tmp___2 = tmp___0;
1081   } else {   1081   } else {
1082     tmp___1 = __fp->_IO_read_ptr;   1082     tmp___1 = __fp->_IO_read_ptr;
1083     (__fp->_IO_read_ptr) ++;   1083     (__fp->_IO_read_ptr) ++;
1084     tmp___2 = (int )*((unsigned char *)tmp___1);   1084     tmp___2 = (int )*((unsigned char *)tmp___1);
1085   }   1085   }
1086   return (tmp___2);   1086   return (tmp___2);
1087 }   1087 }
1088 }   1088 }
1089 __inline extern int getchar_unlocked(void)   1089 __inline extern int getchar_unlocked(void)
1090 {   1090 {
1091   long tmp ;   1091   long tmp ;
1092   int tmp___0 ;   1092   int tmp___0 ;
1093   char *tmp___1 ;   1093   char *tmp___1 ;
1094   int tmp___2 ;   1094   int tmp___2 ;
1095   long tmp___3 ;   1095   long tmp___3 ;
1096     1096  
1097   {   1097   {
1098   tmp___3 = __builtin_expect((long )((unsigned int )stdin->_IO_read_ptr >= (unsigned int )stdin->_IO_read_end),   1098   tmp___3 = __builtin_expect((long )((unsigned int )stdin->_IO_read_ptr >= (unsigned int )stdin->_IO_read_end),
1099                              0L);   1099                              0L);
1100   if (tmp___3) {   1100   if (tmp___3) {
1101     tmp___0 = __uflow(stdin);   1101     tmp___0 = __uflow(stdin);
1102     tmp___2 = tmp___0;   1102     tmp___2 = tmp___0;
1103   } else {   1103   } else {
1104     tmp___1 = stdin->_IO_read_ptr;   1104     tmp___1 = stdin->_IO_read_ptr;
1105     (stdin->_IO_read_ptr) ++;   1105     (stdin->_IO_read_ptr) ++;
1106     tmp___2 = (int )*((unsigned char *)tmp___1);   1106     tmp___2 = (int )*((unsigned char *)tmp___1);
1107   }   1107   }
1108   return (tmp___2);   1108   return (tmp___2);
1109 }   1109 }
1110 }   1110 }
1111 __inline extern int putchar(int __c )   1111 __inline extern int putchar(int __c )
1112 {   1112 {
1113   int tmp ;   1113   int tmp ;
1114     1114  
1115   {   1115   {
1116   tmp = _IO_putc(__c, stdout);   1116   tmp = _IO_putc(__c, stdout);
1117   return (tmp);   1117   return (tmp);
1118 }   1118 }
1119 }   1119 }
1120 __inline extern int fputc_unlocked(int __c , FILE *__stream )   1120 __inline extern int fputc_unlocked(int __c , FILE *__stream )
1121 {   1121 {
1122   long tmp ;   1122   long tmp ;
1123   int tmp___0 ;   1123   int tmp___0 ;
1124   char *tmp___1 ;   1124   char *tmp___1 ;
1125   char tmp___2 ;   1125   char tmp___2 ;
1126   int tmp___3 ;   1126   int tmp___3 ;
1127   long tmp___4 ;   1127   long tmp___4 ;
1128     1128  
1129   {   1129   {
1130   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),   1130   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),
1131                              0L);   1131                              0L);
1132   if (tmp___4) {   1132   if (tmp___4) {
1133     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));   1133     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));
1134     tmp___3 = tmp___0;   1134     tmp___3 = tmp___0;
1135   } else {   1135   } else {
1136     tmp___1 = __stream->_IO_write_ptr;   1136     tmp___1 = __stream->_IO_write_ptr;
1137     (__stream->_IO_write_ptr) ++;   1137     (__stream->_IO_write_ptr) ++;
1138     tmp___2 = (char )__c;   1138     tmp___2 = (char )__c;
1139     *tmp___1 = tmp___2;   1139     *tmp___1 = tmp___2;
1140     tmp___3 = (int )((unsigned char )tmp___2);   1140     tmp___3 = (int )((unsigned char )tmp___2);
1141   }   1141   }
1142   return (tmp___3);   1142   return (tmp___3);
1143 }   1143 }
1144 }   1144 }
1145 __inline extern int putc_unlocked(int __c , FILE *__stream )   1145 __inline extern int putc_unlocked(int __c , FILE *__stream )
1146 {   1146 {
1147   long tmp ;   1147   long tmp ;
1148   int tmp___0 ;   1148   int tmp___0 ;
1149   char *tmp___1 ;   1149   char *tmp___1 ;
1150   char tmp___2 ;   1150   char tmp___2 ;
1151   int tmp___3 ;   1151   int tmp___3 ;
1152   long tmp___4 ;   1152   long tmp___4 ;
1153     1153  
1154   {   1154   {
1155   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),   1155   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),
1156                              0L);   1156                              0L);
1157   if (tmp___4) {   1157   if (tmp___4) {
1158     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));   1158     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));
1159     tmp___3 = tmp___0;   1159     tmp___3 = tmp___0;
1160   } else {   1160   } else {
1161     tmp___1 = __stream->_IO_write_ptr;   1161     tmp___1 = __stream->_IO_write_ptr;
1162     (__stream->_IO_write_ptr) ++;   1162     (__stream->_IO_write_ptr) ++;
1163     tmp___2 = (char )__c;   1163     tmp___2 = (char )__c;
1164     *tmp___1 = tmp___2;   1164     *tmp___1 = tmp___2;
1165     tmp___3 = (int )((unsigned char )tmp___2);   1165     tmp___3 = (int )((unsigned char )tmp___2);
1166   }   1166   }
1167   return (tmp___3);   1167   return (tmp___3);
1168 }   1168 }
1169 }   1169 }
1170 __inline extern int putchar_unlocked(int __c )   1170 __inline extern int putchar_unlocked(int __c )
1171 {   1171 {
1172   long tmp ;   1172   long tmp ;
1173   int tmp___0 ;   1173   int tmp___0 ;
1174   char *tmp___1 ;   1174   char *tmp___1 ;
1175   char tmp___2 ;   1175   char tmp___2 ;
1176   int tmp___3 ;   1176   int tmp___3 ;
1177   long tmp___4 ;   1177   long tmp___4 ;
1178     1178  
1179   {   1179   {
1180   tmp___4 = __builtin_expect((long )((unsigned int )stdout->_IO_write_ptr >= (unsigned int )stdout->_IO_write_end),   1180   tmp___4 = __builtin_expect((long )((unsigned int )stdout->_IO_write_ptr >= (unsigned int )stdout->_IO_write_end),
1181                              0L);   1181                              0L);
1182   if (tmp___4) {   1182   if (tmp___4) {
1183     tmp___0 = __overflow(stdout, (int )((unsigned char )__c));   1183     tmp___0 = __overflow(stdout, (int )((unsigned char )__c));
1184     tmp___3 = tmp___0;   1184     tmp___3 = tmp___0;
1185   } else {   1185   } else {
1186     tmp___1 = stdout->_IO_write_ptr;   1186     tmp___1 = stdout->_IO_write_ptr;
1187     (stdout->_IO_write_ptr) ++;   1187     (stdout->_IO_write_ptr) ++;
1188     tmp___2 = (char )__c;   1188     tmp___2 = (char )__c;
1189     *tmp___1 = tmp___2;   1189     *tmp___1 = tmp___2;
1190     tmp___3 = (int )((unsigned char )tmp___2);   1190     tmp___3 = (int )((unsigned char )tmp___2);
1191   }   1191   }
1192   return (tmp___3);   1192   return (tmp___3);
1193 }   1193 }
1194 }   1194 }
1195 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;   1195 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;
1196 __inline extern int feof_unlocked(FILE *__stream )   1196 __inline extern int feof_unlocked(FILE *__stream )
1197 {   1197 {
1198     1198  
1199     1199  
1200   {   1200   {
1201   return ((__stream->_flags & 16) != 0);   1201   return ((__stream->_flags & 16) != 0);
1202 }   1202 }
1203 }   1203 }
1204 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;   1204 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;
1205 __inline extern int ferror_unlocked(FILE *__stream )   1205 __inline extern int ferror_unlocked(FILE *__stream )
1206 {   1206 {
1207     1207  
1208     1208  
1209   {   1209   {
1210   return ((__stream->_flags & 32) != 0);   1210   return ((__stream->_flags & 32) != 0);
1211 }   1211 }
1212 }   1212 }
1213 extern  __attribute__((__nothrow__)) size_t __ctype_get_mb_cur_max(void) ;   1213 extern  __attribute__((__nothrow__)) size_t __ctype_get_mb_cur_max(void) ;
1214 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;   1214 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;
1215 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;   1215 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;
1216 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;   1216 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;
1217 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;   1217 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;
1218 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) strtod)(char const   * __restrict  __nptr ,   1218 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) strtod)(char const   * __restrict  __nptr ,
1219                                                                                       char ** __restrict  __endptr ) ;   1219                                                                                       char ** __restrict  __endptr ) ;
1220 extern  __attribute__((__nothrow__)) float ( __attribute__((__nonnull__(1))) strtof)(char const   * __restrict  __nptr ,   1220 extern  __attribute__((__nothrow__)) float ( __attribute__((__nonnull__(1))) strtof)(char const   * __restrict  __nptr ,
1221                                                                                      char ** __restrict  __endptr ) ;   1221                                                                                      char ** __restrict  __endptr ) ;
1222 extern  __attribute__((__nothrow__)) long double ( __attribute__((__nonnull__(1))) strtold)(char const   * __restrict  __nptr ,   1222 extern  __attribute__((__nothrow__)) long double ( __attribute__((__nonnull__(1))) strtold)(char const   * __restrict  __nptr ,
1223                                                                                             char ** __restrict  __endptr ) ;   1223                                                                                             char ** __restrict  __endptr ) ;
1224 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) strtol)(char const   * __restrict  __nptr ,   1224 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) strtol)(char const   * __restrict  __nptr ,
1225                                                                                     char ** __restrict  __endptr ,   1225                                                                                     char ** __restrict  __endptr ,
1226                                                                                     int __base ) ;   1226                                                                                     int __base ) ;
1227 extern  __attribute__((__nothrow__)) unsigned long ( __attribute__((__nonnull__(1))) strtoul)(char const   * __restrict  __nptr ,   1227 extern  __attribute__((__nothrow__)) unsigned long ( __attribute__((__nonnull__(1))) strtoul)(char const   * __restrict  __nptr ,
1228                                                                                               char ** __restrict  __endptr ,   1228                                                                                               char ** __restrict  __endptr ,
1229                                                                                               int __base ) ;   1229                                                                                               int __base ) ;
1230 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoq)(char const   * __restrict  __nptr ,   1230 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoq)(char const   * __restrict  __nptr ,
1231                                                                                          char ** __restrict  __endptr ,   1231                                                                                          char ** __restrict  __endptr ,
1232                                                                                          int __base ) ;   1232                                                                                          int __base ) ;
1233 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtouq)(char const   * __restrict  __nptr ,   1233 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtouq)(char const   * __restrict  __nptr ,
1234                                                                                                    char ** __restrict  __endptr ,   1234                                                                                                    char ** __restrict  __endptr ,
1235                                                                                                    int __base ) ;   1235                                                                                                    int __base ) ;
1236 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoll)(char const   * __restrict  __nptr ,   1236 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoll)(char const   * __restrict  __nptr ,
1237                                                                                           char ** __restrict  __endptr ,   1237                                                                                           char ** __restrict  __endptr ,
1238                                                                                           int __base ) ;   1238                                                                                           int __base ) ;
1239 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtoull)(char const   * __restrict  __nptr ,   1239 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtoull)(char const   * __restrict  __nptr ,
1240                                                                                                     char ** __restrict  __endptr ,   1240                                                                                                     char ** __restrict  __endptr ,
1241                                                                                                     int __base ) ;   1241                                                                                                     int __base ) ;
1242 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;   1242 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;
1243 __inline extern double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )   1243 __inline extern double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )
1244 {   1244 {
1245   double tmp ;   1245   double tmp ;
1246     1246  
1247   {   1247   {
1248   tmp = strtod((char const   */* __restrict  */)__nptr,   1248   tmp = strtod((char const   */* __restrict  */)__nptr,
1249                (char **/* __restrict  */)((char **)((void *)0)));   1249                (char **/* __restrict  */)((char **)((void *)0)));
1250   return (tmp);   1250   return (tmp);
1251 }   1251 }
1252 }   1252 }
1253 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;   1253 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;
1254 __inline extern int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )   1254 __inline extern int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )
1255 {   1255 {
1256   long tmp ;   1256   long tmp ;
1257     1257  
1258   {   1258   {
1259   tmp = strtol((char const   */* __restrict  */)__nptr,   1259   tmp = strtol((char const   */* __restrict  */)__nptr,
1260                (char **/* __restrict  */)((char **)((void *)0)), 10);   1260                (char **/* __restrict  */)((char **)((void *)0)), 10);
1261   return ((int )tmp);   1261   return ((int )tmp);
1262 }   1262 }
1263 }   1263 }
1264 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;   1264 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;
1265 __inline extern long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )   1265 __inline extern long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )
1266 {   1266 {
1267   long tmp ;   1267   long tmp ;
1268     1268  
1269   {   1269   {
1270   tmp = strtol((char const   */* __restrict  */)__nptr,   1270   tmp = strtol((char const   */* __restrict  */)__nptr,
1271                (char **/* __restrict  */)((char **)((void *)0)), 10);   1271                (char **/* __restrict  */)((char **)((void *)0)), 10);
1272   return (tmp);   1272   return (tmp);
1273 }   1273 }
1274 }   1274 }
1275 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;   1275 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;
1276 __inline extern long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )   1276 __inline extern long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )
1277 {   1277 {
1278   long long tmp ;   1278   long long tmp ;
1279     1279  
1280   {   1280   {
1281   tmp = strtoll((char const   */* __restrict  */)__nptr,   1281   tmp = strtoll((char const   */* __restrict  */)__nptr,
1282                 (char **/* __restrict  */)((char **)((void *)0)), 10);   1282                 (char **/* __restrict  */)((char **)((void *)0)), 10);
1283   return (tmp);   1283   return (tmp);
1284 }   1284 }
1285 }   1285 }
1286 extern  __attribute__((__nothrow__)) char *l64a(long __n ) ;   1286 extern  __attribute__((__nothrow__)) char *l64a(long __n ) ;
1287 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) a64l)(char const   *__s )  __attribute__((__pure__)) ;   1287 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) a64l)(char const   *__s )  __attribute__((__pure__)) ;
1288 extern int select(int __nfds , fd_set * __restrict  __readfds ,   1288 extern int select(int __nfds , fd_set * __restrict  __readfds ,
1289                   fd_set * __restrict  __writefds ,   1289                   fd_set * __restrict  __writefds ,
1290                   fd_set * __restrict  __exceptfds ,   1290                   fd_set * __restrict  __exceptfds ,
1291                   struct timeval * __restrict  __timeout ) ;   1291                   struct timeval * __restrict  __timeout ) ;
1292 extern int pselect(int __nfds , fd_set * __restrict  __readfds ,   1292 extern int pselect(int __nfds , fd_set * __restrict  __readfds ,
1293                    fd_set * __restrict  __writefds ,   1293                    fd_set * __restrict  __writefds ,
1294                    fd_set * __restrict  __exceptfds ,   1294                    fd_set * __restrict  __exceptfds ,
1295                    struct timespec  const  * __restrict  __timeout ,   1295                    struct timespec  const  * __restrict  __timeout ,
1296                    __sigset_t const   * __restrict  __sigmask ) ;   1296                    __sigset_t const   * __restrict  __sigmask ) ;
1297 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;   1297 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;
1298 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;   1298 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;
1299 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,   1299 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,
1300                                                                                  unsigned int __minor ) ;   1300                                                                                  unsigned int __minor ) ;
1301 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;   1301 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;
1302 __inline extern unsigned int gnu_dev_major(unsigned long long __dev )   1302 __inline extern unsigned int gnu_dev_major(unsigned long long __dev )
1303 {   1303 {
1304     1304  
1305     1305  
1306   {   1306   {
1307   return ((unsigned int )(((__dev >> 8) & 4095ULL) | (unsigned long long )((unsigned int )(__dev >> 32) & 4294963200U)));   1307   return ((unsigned int )(((__dev >> 8) & 4095ULL) | (unsigned long long )((unsigned int )(__dev >> 32) & 4294963200U)));
1308 }   1308 }
1309 }   1309 }
1310 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;   1310 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;
1311 __inline extern unsigned int gnu_dev_minor(unsigned long long __dev )   1311 __inline extern unsigned int gnu_dev_minor(unsigned long long __dev )
1312 {   1312 {
1313     1313  
1314     1314  
1315   {   1315   {
1316   return ((unsigned int )((__dev & 255ULL) | (unsigned long long )((unsigned int )(__dev >> 12) & 4294967040U)));   1316   return ((unsigned int )((__dev & 255ULL) | (unsigned long long )((unsigned int )(__dev >> 12) & 4294967040U)));
1317 }   1317 }
1318 }   1318 }
1319 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,   1319 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,
1320                                                                                  unsigned int __minor ) ;   1320                                                                                  unsigned int __minor ) ;
1321 __inline extern unsigned long long gnu_dev_makedev(unsigned int __major ,   1321 __inline extern unsigned long long gnu_dev_makedev(unsigned int __major ,
1322                                                    unsigned int __minor )   1322                                                    unsigned int __minor )
1323 {   1323 {
1324     1324  
1325     1325  
1326   {   1326   {
1327   return (((unsigned long long )((__minor & 255U) | ((__major & 4095U) << 8)) | ((unsigned long long )(__minor & 4294967040U) << 12)) | ((unsigned long long )(__major & 4294963200U) << 32));   1327   return (((unsigned long long )((__minor & 255U) | ((__major & 4095U) << 8)) | ((unsigned long long )(__minor & 4294967040U) << 12)) | ((unsigned long long )(__major & 4294963200U) << 32));
1328 }   1328 }
1329 }   1329 }
1330 extern  __attribute__((__nothrow__)) long random(void) ;   1330 extern  __attribute__((__nothrow__)) long random(void) ;
1331 extern  __attribute__((__nothrow__)) void srandom(unsigned int __seed ) ;   1331 extern  __attribute__((__nothrow__)) void srandom(unsigned int __seed ) ;
1332 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) initstate)(unsigned int __seed ,   1332 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) initstate)(unsigned int __seed ,
1333                                                                                         char *__statebuf ,   1333                                                                                         char *__statebuf ,
1334                                                                                         size_t __statelen ) ;   1334                                                                                         size_t __statelen ) ;
1335 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) setstate)(char *__statebuf ) ;   1335 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) setstate)(char *__statebuf ) ;
1336 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) random_r)(struct random_data * __restrict  __buf ,   1336 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) random_r)(struct random_data * __restrict  __buf ,
1337                                                                                        int32_t * __restrict  __result ) ;   1337                                                                                        int32_t * __restrict  __result ) ;
1338 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srandom_r)(unsigned int __seed ,   1338 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srandom_r)(unsigned int __seed ,
1339                                                                                       struct random_data *__buf ) ;   1339                                                                                       struct random_data *__buf ) ;
1340 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) initstate_r)(unsigned int __seed ,   1340 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) initstate_r)(unsigned int __seed ,
1341                                                                                           char * __restrict  __statebuf ,   1341                                                                                           char * __restrict  __statebuf ,
1342                                                                                           size_t __statelen ,   1342                                                                                           size_t __statelen ,
1343                                                                                           struct random_data * __restrict  __buf ) ;   1343                                                                                           struct random_data * __restrict  __buf ) ;
1344 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) setstate_r)(char * __restrict  __statebuf ,   1344 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) setstate_r)(char * __restrict  __statebuf ,
1345                                                                                          struct random_data * __restrict  __buf ) ;   1345                                                                                          struct random_data * __restrict  __buf ) ;
1346 extern  __attribute__((__nothrow__)) int rand(void) ;   1346 extern  __attribute__((__nothrow__)) int rand(void) ;
1347 extern  __attribute__((__nothrow__)) void srand(unsigned int __seed ) ;   1347 extern  __attribute__((__nothrow__)) void srand(unsigned int __seed ) ;
1348 extern  __attribute__((__nothrow__)) int rand_r(unsigned int *__seed ) ;   1348 extern  __attribute__((__nothrow__)) int rand_r(unsigned int *__seed ) ;
1349 extern  __attribute__((__nothrow__)) double drand48(void) ;   1349 extern  __attribute__((__nothrow__)) double drand48(void) ;
1350 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) erand48)(unsigned short *__xsubi ) ;   1350 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) erand48)(unsigned short *__xsubi ) ;
1351 extern  __attribute__((__nothrow__)) long lrand48(void) ;   1351 extern  __attribute__((__nothrow__)) long lrand48(void) ;
1352 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) nrand48)(unsigned short *__xsubi ) ;   1352 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) nrand48)(unsigned short *__xsubi ) ;
1353 extern  __attribute__((__nothrow__)) long mrand48(void) ;   1353 extern  __attribute__((__nothrow__)) long mrand48(void) ;
1354 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) jrand48)(unsigned short *__xsubi ) ;   1354 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) jrand48)(unsigned short *__xsubi ) ;
1355 extern  __attribute__((__nothrow__)) void srand48(long __seedval ) ;   1355 extern  __attribute__((__nothrow__)) void srand48(long __seedval ) ;
1356 extern  __attribute__((__nothrow__)) unsigned short *( __attribute__((__nonnull__(1))) seed48)(unsigned short *__seed16v ) ;   1356 extern  __attribute__((__nothrow__)) unsigned short *( __attribute__((__nonnull__(1))) seed48)(unsigned short *__seed16v ) ;
1357 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) lcong48)(unsigned short *__param ) ;   1357 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) lcong48)(unsigned short *__param ) ;
1358 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) drand48_r)(struct drand48_data * __restrict  __buffer ,   1358 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) drand48_r)(struct drand48_data * __restrict  __buffer ,
1359                                                                                         double * __restrict  __result ) ;   1359                                                                                         double * __restrict  __result ) ;
1360 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) erand48_r)(unsigned short *__xsubi ,   1360 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) erand48_r)(unsigned short *__xsubi ,
1361                                                                                         struct drand48_data * __restrict  __buffer ,   1361                                                                                         struct drand48_data * __restrict  __buffer ,
1362                                                                                         double * __restrict  __result ) ;   1362                                                                                         double * __restrict  __result ) ;
1363 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lrand48_r)(struct drand48_data * __restrict  __buffer ,   1363 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lrand48_r)(struct drand48_data * __restrict  __buffer ,
1364                                                                                         long * __restrict  __result ) ;   1364                                                                                         long * __restrict  __result ) ;
1365 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) nrand48_r)(unsigned short *__xsubi ,   1365 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) nrand48_r)(unsigned short *__xsubi ,
1366                                                                                         struct drand48_data * __restrict  __buffer ,   1366                                                                                         struct drand48_data * __restrict  __buffer ,
1367                                                                                         long * __restrict  __result ) ;   1367                                                                                         long * __restrict  __result ) ;
1368 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) mrand48_r)(struct drand48_data * __restrict  __buffer ,   1368 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) mrand48_r)(struct drand48_data * __restrict  __buffer ,
1369                                                                                         long * __restrict  __result ) ;   1369                                                                                         long * __restrict  __result ) ;
1370 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) jrand48_r)(unsigned short *__xsubi ,   1370 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) jrand48_r)(unsigned short *__xsubi ,
1371                                                                                         struct drand48_data * __restrict  __buffer ,   1371                                                                                         struct drand48_data * __restrict  __buffer ,
1372                                                                                         long * __restrict  __result ) ;   1372                                                                                         long * __restrict  __result ) ;
1373 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srand48_r)(long __seedval ,   1373 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srand48_r)(long __seedval ,
1374                                                                                       struct drand48_data *__buffer ) ;   1374                                                                                       struct drand48_data *__buffer ) ;
1375 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) seed48_r)(unsigned short *__seed16v ,   1375 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) seed48_r)(unsigned short *__seed16v ,
1376                                                                                        struct drand48_data *__buffer ) ;   1376                                                                                        struct drand48_data *__buffer ) ;
1377 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lcong48_r)(unsigned short *__param ,   1377 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lcong48_r)(unsigned short *__param ,
1378                                                                                         struct drand48_data *__buffer ) ;   1378                                                                                         struct drand48_data *__buffer ) ;
1379 extern  __attribute__((__nothrow__)) void *malloc(size_t __size )  __attribute__((__malloc__)) ;   1379 extern  __attribute__((__nothrow__)) void *malloc(size_t __size )  __attribute__((__malloc__)) ;
1380 extern  __attribute__((__nothrow__)) void *calloc(size_t __nmemb ,   1380 extern  __attribute__((__nothrow__)) void *calloc(size_t __nmemb ,
1381                                                   size_t __size )  __attribute__((__malloc__)) ;   1381                                                   size_t __size )  __attribute__((__malloc__)) ;
1382 extern  __attribute__((__nothrow__)) void *( __attribute__((__warn_unused_result__)) realloc)(void *__ptr ,   1382 extern  __attribute__((__nothrow__)) void *( __attribute__((__warn_unused_result__)) realloc)(void *__ptr ,
1383                                                                                               size_t __size ) ;   1383                                                                                               size_t __size ) ;
1384 extern  __attribute__((__nothrow__)) void free(void *__ptr ) ;   1384 extern  __attribute__((__nothrow__)) void free(void *__ptr ) ;
1385 extern  __attribute__((__nothrow__)) void cfree(void *__ptr ) ;   1385 extern  __attribute__((__nothrow__)) void cfree(void *__ptr ) ;
1386 extern  __attribute__((__nothrow__)) void *alloca(size_t __size ) ;   1386 extern  __attribute__((__nothrow__)) void *alloca(size_t __size ) ;
1387 extern  __attribute__((__nothrow__)) void *valloc(size_t __size )  __attribute__((__malloc__)) ;   1387 extern  __attribute__((__nothrow__)) void *valloc(size_t __size )  __attribute__((__malloc__)) ;
1388 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) posix_memalign)(void **__memptr ,   1388 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) posix_memalign)(void **__memptr ,
1389                                                                                            size_t __alignment ,   1389                                                                                            size_t __alignment ,
1390                                                                                            size_t __size ) ;   1390                                                                                            size_t __size ) ;
1391 extern  __attribute__((__nothrow__, __noreturn__)) void abort(void) ;   1391 extern  __attribute__((__nothrow__, __noreturn__)) void abort(void) ;
1392 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atexit)(void (*__func)(void) ) ;   1392 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atexit)(void (*__func)(void) ) ;
1393 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) on_exit)(void (*__func)(int __status ,   1393 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) on_exit)(void (*__func)(int __status ,
1394                                                                                                    void *__arg ) ,   1394                                                                                                    void *__arg ) ,
1395                                                                                     void *__arg ) ;   1395                                                                                     void *__arg ) ;
1396 extern  __attribute__((__nothrow__, __noreturn__)) void exit(int __status ) ;   1396 extern  __attribute__((__nothrow__, __noreturn__)) void exit(int __status ) ;
1397 extern  __attribute__((__nothrow__, __noreturn__)) void _Exit(int __status ) ;   1397 extern  __attribute__((__nothrow__, __noreturn__)) void _Exit(int __status ) ;
1398 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getenv)(char const   *__name ) ;   1398 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getenv)(char const   *__name ) ;
1399 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) __secure_getenv)(char const   *__name ) ;   1399 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) __secure_getenv)(char const   *__name ) ;
1400 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) putenv)(char *__string ) ;   1400 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) putenv)(char *__string ) ;
1401 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) setenv)(char const   *__name ,   1401 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) setenv)(char const   *__name ,
1402                                                                                    char const   *__value ,   1402                                                                                    char const   *__value ,
1403                                                                                    int __replace ) ;   1403                                                                                    int __replace ) ;
1404 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unsetenv)(char const   *__name ) ;   1404 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unsetenv)(char const   *__name ) ;
1405 extern  __attribute__((__nothrow__)) int clearenv(void) ;   1405 extern  __attribute__((__nothrow__)) int clearenv(void) ;
1406 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mktemp)(char *__template ) ;   1406 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mktemp)(char *__template ) ;
1407 extern int ( __attribute__((__nonnull__(1))) mkstemp)(char *__template )  __asm__("mkstemp64")  ;   1407 extern int ( __attribute__((__nonnull__(1))) mkstemp)(char *__template )  __asm__("mkstemp64")  ;
1408 extern int ( __attribute__((__nonnull__(1))) mkstemps)(char *__template ,   1408 extern int ( __attribute__((__nonnull__(1))) mkstemps)(char *__template ,
1409                                                        int __suffixlen )  __asm__("mkstemps64")  ;   1409                                                        int __suffixlen )  __asm__("mkstemps64")  ;
1410 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mkdtemp)(char *__template ) ;   1410 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mkdtemp)(char *__template ) ;
1411 extern int system(char const   *__command ) ;   1411 extern int system(char const   *__command ) ;
1412 extern  __attribute__((__nothrow__)) char *realpath(char const   * __restrict  __name ,   1412 extern  __attribute__((__nothrow__)) char *realpath(char const   * __restrict  __name ,
1413                                                     char * __restrict  __resolved ) ;   1413                                                     char * __restrict  __resolved ) ;
1414 extern void *( __attribute__((__nonnull__(1,2,5))) bsearch)(void const   *__key ,   1414 extern void *( __attribute__((__nonnull__(1,2,5))) bsearch)(void const   *__key ,
1415                                                             void const   *__base ,   1415                                                             void const   *__base ,
1416                                                             size_t __nmemb ,   1416                                                             size_t __nmemb ,
1417                                                             size_t __size ,   1417                                                             size_t __size ,
1418                                                             int (*__compar)(void const   * ,   1418                                                             int (*__compar)(void const   * ,
1419                                                                             void const   * ) ) ;   1419                                                                             void const   * ) ) ;
1420 extern void ( __attribute__((__nonnull__(1,4))) qsort)(void *__base ,   1420 extern void ( __attribute__((__nonnull__(1,4))) qsort)(void *__base ,
1421                                                        size_t __nmemb ,   1421                                                        size_t __nmemb ,
1422                                                        size_t __size ,   1422                                                        size_t __size ,
1423                                                        int (*__compar)(void const   * ,   1423                                                        int (*__compar)(void const   * ,
1424                                                                        void const   * ) ) ;   1424                                                                        void const   * ) ) ;
1425 extern  __attribute__((__nothrow__)) int abs(int __x )  __attribute__((__const__)) ;   1425 extern  __attribute__((__nothrow__)) int abs(int __x )  __attribute__((__const__)) ;
1426 extern  __attribute__((__nothrow__)) long labs(long __x )  __attribute__((__const__)) ;   1426 extern  __attribute__((__nothrow__)) long labs(long __x )  __attribute__((__const__)) ;
1427 extern  __attribute__((__nothrow__)) long long llabs(long long __x )  __attribute__((__const__)) ;   1427 extern  __attribute__((__nothrow__)) long long llabs(long long __x )  __attribute__((__const__)) ;
1428 extern  __attribute__((__nothrow__)) div_t div(int __numer , int __denom )  __attribute__((__const__)) ;   1428 extern  __attribute__((__nothrow__)) div_t div(int __numer , int __denom )  __attribute__((__const__)) ;
1429 extern  __attribute__((__nothrow__)) ldiv_t ldiv(long __numer , long __denom )  __attribute__((__const__)) ;   1429 extern  __attribute__((__nothrow__)) ldiv_t ldiv(long __numer , long __denom )  __attribute__((__const__)) ;
1430 extern  __attribute__((__nothrow__)) lldiv_t lldiv(long long __numer ,   1430 extern  __attribute__((__nothrow__)) lldiv_t lldiv(long long __numer ,
1431                                                    long long __denom )  __attribute__((__const__)) ;   1431                                                    long long __denom )  __attribute__((__const__)) ;
1432 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) ecvt)(double __value ,   1432 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) ecvt)(double __value ,
1433                                                                                      int __ndigit ,   1433                                                                                      int __ndigit ,
1434                                                                                      int * __restrict  __decpt ,   1434                                                                                      int * __restrict  __decpt ,
1435                                                                                      int * __restrict  __sign ) ;   1435                                                                                      int * __restrict  __sign ) ;
1436 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) fcvt)(double __value ,   1436 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) fcvt)(double __value ,
1437                                                                                      int __ndigit ,   1437                                                                                      int __ndigit ,
1438                                                                                      int * __restrict  __decpt ,   1438                                                                                      int * __restrict  __decpt ,
1439                                                                                      int * __restrict  __sign ) ;   1439                                                                                      int * __restrict  __sign ) ;
1440 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) gcvt)(double __value ,   1440 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) gcvt)(double __value ,
1441                                                                                    int __ndigit ,   1441                                                                                    int __ndigit ,
1442                                                                                    char *__buf ) ;   1442                                                                                    char *__buf ) ;
1443 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qecvt)(long double __value ,   1443 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qecvt)(long double __value ,
1444                                                                                       int __ndigit ,   1444                                                                                       int __ndigit ,
1445                                                                                       int * __restrict  __decpt ,   1445                                                                                       int * __restrict  __decpt ,
1446                                                                                       int * __restrict  __sign ) ;   1446                                                                                       int * __restrict  __sign ) ;
1447 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qfcvt)(long double __value ,   1447 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qfcvt)(long double __value ,
1448                                                                                       int __ndigit ,   1448                                                                                       int __ndigit ,
1449                                                                                       int * __restrict  __decpt ,   1449                                                                                       int * __restrict  __decpt ,
1450                                                                                       int * __restrict  __sign ) ;   1450                                                                                       int * __restrict  __sign ) ;
1451 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) qgcvt)(long double __value ,   1451 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) qgcvt)(long double __value ,
1452                                                                                     int __ndigit ,   1452                                                                                     int __ndigit ,
1453                                                                                     char *__buf ) ;   1453                                                                                     char *__buf ) ;
1454 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) ecvt_r)(double __value ,   1454 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) ecvt_r)(double __value ,
1455                                                                                        int __ndigit ,   1455                                                                                        int __ndigit ,
1456                                                                                        int * __restrict  __decpt ,   1456                                                                                        int * __restrict  __decpt ,
1457                                                                                        int * __restrict  __sign ,   1457                                                                                        int * __restrict  __sign ,
1458                                                                                        char * __restrict  __buf ,   1458                                                                                        char * __restrict  __buf ,
1459                                                                                        size_t __len ) ;   1459                                                                                        size_t __len ) ;
1460 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) fcvt_r)(double __value ,   1460 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) fcvt_r)(double __value ,
1461                                                                                        int __ndigit ,   1461                                                                                        int __ndigit ,
1462                                                                                        int * __restrict  __decpt ,   1462                                                                                        int * __restrict  __decpt ,
1463                                                                                        int * __restrict  __sign ,   1463                                                                                        int * __restrict  __sign ,
1464                                                                                        char * __restrict  __buf ,   1464                                                                                        char * __restrict  __buf ,
1465                                                                                        size_t __len ) ;   1465                                                                                        size_t __len ) ;
1466 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qecvt_r)(long double __value ,   1466 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qecvt_r)(long double __value ,
1467                                                                                         int __ndigit ,   1467                                                                                         int __ndigit ,
1468                                                                                         int * __restrict  __decpt ,   1468                                                                                         int * __restrict  __decpt ,
1469                                                                                         int * __restrict  __sign ,   1469                                                                                         int * __restrict  __sign ,
1470                                                                                         char * __restrict  __buf ,   1470                                                                                         char * __restrict  __buf ,
1471                                                                                         size_t __len ) ;   1471                                                                                         size_t __len ) ;
1472 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qfcvt_r)(long double __value ,   1472 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qfcvt_r)(long double __value ,
1473                                                                                         int __ndigit ,   1473                                                                                         int __ndigit ,
1474                                                                                         int * __restrict  __decpt ,   1474                                                                                         int * __restrict  __decpt ,
1475                                                                                         int * __restrict  __sign ,   1475                                                                                         int * __restrict  __sign ,
1476                                                                                         char * __restrict  __buf ,   1476                                                                                         char * __restrict  __buf ,
1477                                                                                         size_t __len ) ;   1477                                                                                         size_t __len ) ;
1478 extern  __attribute__((__nothrow__)) int mblen(char const   *__s , size_t __n ) ;   1478 extern  __attribute__((__nothrow__)) int mblen(char const   *__s , size_t __n ) ;
1479 extern  __attribute__((__nothrow__)) int mbtowc(wchar_t * __restrict  __pwc ,   1479 extern  __attribute__((__nothrow__)) int mbtowc(wchar_t * __restrict  __pwc ,
1480                                                 char const   * __restrict  __s ,   1480                                                 char const   * __restrict  __s ,
1481                                                 size_t __n ) ;   1481                                                 size_t __n ) ;
1482 extern  __attribute__((__nothrow__)) int wctomb(char *__s , wchar_t __wchar ) ;   1482 extern  __attribute__((__nothrow__)) int wctomb(char *__s , wchar_t __wchar ) ;
1483 extern  __attribute__((__nothrow__)) size_t mbstowcs(wchar_t * __restrict  __pwcs ,   1483 extern  __attribute__((__nothrow__)) size_t mbstowcs(wchar_t * __restrict  __pwcs ,
1484                                                      char const   * __restrict  __s ,   1484                                                      char const   * __restrict  __s ,
1485                                                      size_t __n ) ;   1485                                                      size_t __n ) ;
1486 extern  __attribute__((__nothrow__)) size_t wcstombs(char * __restrict  __s ,   1486 extern  __attribute__((__nothrow__)) size_t wcstombs(char * __restrict  __s ,
1487                                                      wchar_t const   * __restrict  __pwcs ,   1487                                                      wchar_t const   * __restrict  __pwcs ,
1488                                                      size_t __n ) ;   1488                                                      size_t __n ) ;
1489 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rpmatch)(char const   *__response ) ;   1489 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rpmatch)(char const   *__response ) ;
1490 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) getsubopt)(char ** __restrict  __optionp ,   1490 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) getsubopt)(char ** __restrict  __optionp ,
1491                                                                                           char * const  * __restrict  __tokens ,   1491                                                                                           char * const  * __restrict  __tokens ,
1492                                                                                           char ** __restrict  __valuep ) ;   1492                                                                                           char ** __restrict  __valuep ) ;
1493 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getloadavg)(double *__loadavg ,   1493 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getloadavg)(double *__loadavg ,
1494                                                                                        int __nelem ) ;   1494                                                                                        int __nelem ) ;
1495 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memcpy)(void * __restrict  __dest ,   1495 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memcpy)(void * __restrict  __dest ,
1496                                                                                        void const   * __restrict  __src ,   1496                                                                                        void const   * __restrict  __src ,
1497                                                                                        size_t __n ) ;   1497                                                                                        size_t __n ) ;
1498 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memmove)(void *__dest ,   1498 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memmove)(void *__dest ,
1499                                                                                         void const   *__src ,   1499                                                                                         void const   *__src ,
1500                                                                                         size_t __n ) ;   1500                                                                                         size_t __n ) ;
1501 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memccpy)(void * __restrict  __dest ,   1501 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memccpy)(void * __restrict  __dest ,
1502                                                                                         void const   * __restrict  __src ,   1502                                                                                         void const   * __restrict  __src ,
1503                                                                                         int __c ,   1503                                                                                         int __c ,
1504                                                                                         size_t __n ) ;   1504                                                                                         size_t __n ) ;
1505 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memset)(void *__s ,   1505 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memset)(void *__s ,
1506                                                                                      int __c ,   1506                                                                                      int __c ,
1507                                                                                      size_t __n ) ;   1507                                                                                      size_t __n ) ;
1508 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) memcmp)(void const   *__s1 ,   1508 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) memcmp)(void const   *__s1 ,
1509                                                                                      void const   *__s2 ,   1509                                                                                      void const   *__s2 ,
1510                                                                                      size_t __n )  __attribute__((__pure__)) ;   1510                                                                                      size_t __n )  __attribute__((__pure__)) ;
1511 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memchr)(void const   *__s ,   1511 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memchr)(void const   *__s ,
1512                                                                                      int __c ,   1512                                                                                      int __c ,
1513                                                                                      size_t __n )  __attribute__((__pure__)) ;   1513                                                                                      size_t __n )  __attribute__((__pure__)) ;
1514 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcpy)(char * __restrict  __dest ,   1514 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcpy)(char * __restrict  __dest ,
1515                                                                                        char const   * __restrict  __src ) ;   1515                                                                                        char const   * __restrict  __src ) ;
1516 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncpy)(char * __restrict  __dest ,   1516 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncpy)(char * __restrict  __dest ,
1517                                                                                         char const   * __restrict  __src ,   1517                                                                                         char const   * __restrict  __src ,
1518                                                                                         size_t __n ) ;   1518                                                                                         size_t __n ) ;
1519 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcat)(char * __restrict  __dest ,   1519 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcat)(char * __restrict  __dest ,
1520                                                                                        char const   * __restrict  __src ) ;   1520                                                                                        char const   * __restrict  __src ) ;
1521 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncat)(char * __restrict  __dest ,   1521 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncat)(char * __restrict  __dest ,
1522                                                                                         char const   * __restrict  __src ,   1522                                                                                         char const   * __restrict  __src ,
1523                                                                                         size_t __n ) ;   1523                                                                                         size_t __n ) ;
1524 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcmp)(char const   *__s1 ,   1524 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcmp)(char const   *__s1 ,
1525                                                                                      char const   *__s2 )  __attribute__((__pure__)) ;   1525                                                                                      char const   *__s2 )  __attribute__((__pure__)) ;
1526 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncmp)(char const   *__s1 ,   1526 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncmp)(char const   *__s1 ,
1527                                                                                       char const   *__s2 ,   1527                                                                                       char const   *__s2 ,
1528                                                                                       size_t __n )  __attribute__((__pure__)) ;   1528                                                                                       size_t __n )  __attribute__((__pure__)) ;
1529 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcoll)(char const   *__s1 ,   1529 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcoll)(char const   *__s1 ,
1530                                                                                       char const   *__s2 )  __attribute__((__pure__)) ;   1530                                                                                       char const   *__s2 )  __attribute__((__pure__)) ;
1531 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2))) strxfrm)(char * __restrict  __dest ,   1531 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2))) strxfrm)(char * __restrict  __dest ,
1532                                                                                        char const   * __restrict  __src ,   1532                                                                                        char const   * __restrict  __src ,
1533                                                                                        size_t __n ) ;   1533                                                                                        size_t __n ) ;
1534 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) strcoll_l)(char const   *__s1 ,   1534 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) strcoll_l)(char const   *__s1 ,
1535                                                                                           char const   *__s2 ,   1535                                                                                           char const   *__s2 ,
1536                                                                                           __locale_t __l )  __attribute__((__pure__)) ;   1536                                                                                           __locale_t __l )  __attribute__((__pure__)) ;
1537 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2,4))) strxfrm_l)(char *__dest ,   1537 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2,4))) strxfrm_l)(char *__dest ,
1538                                                                                            char const   *__src ,   1538                                                                                            char const   *__src ,
1539                                                                                            size_t __n ,   1539                                                                                            size_t __n ,
1540                                                                                            __locale_t __l ) ;   1540                                                                                            __locale_t __l ) ;
1541 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strdup)(char const   *__s )  __attribute__((__malloc__)) ;   1541 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strdup)(char const   *__s )  __attribute__((__malloc__)) ;
1542 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strndup)(char const   *__string ,   1542 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strndup)(char const   *__string ,
1543                                                                                       size_t __n )  __attribute__((__malloc__)) ;   1543                                                                                       size_t __n )  __attribute__((__malloc__)) ;
1544 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strchr)(char const   *__s ,   1544 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strchr)(char const   *__s ,
1545                                                                                      int __c )  __attribute__((__pure__)) ;   1545                                                                                      int __c )  __attribute__((__pure__)) ;
1546 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strrchr)(char const   *__s ,   1546 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strrchr)(char const   *__s ,
1547                                                                                       int __c )  __attribute__((__pure__)) ;   1547                                                                                       int __c )  __attribute__((__pure__)) ;
1548 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strcspn)(char const   *__s ,   1548 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strcspn)(char const   *__s ,
1549                                                                                          char const   *__reject )  __attribute__((__pure__)) ;   1549                                                                                          char const   *__reject )  __attribute__((__pure__)) ;
1550 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strspn)(char const   *__s ,   1550 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strspn)(char const   *__s ,
1551                                                                                         char const   *__accept )  __attribute__((__pure__)) ;   1551                                                                                         char const   *__accept )  __attribute__((__pure__)) ;
1552 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strpbrk)(char const   *__s ,   1552 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strpbrk)(char const   *__s ,
1553                                                                                         char const   *__accept )  __attribute__((__pure__)) ;   1553                                                                                         char const   *__accept )  __attribute__((__pure__)) ;
1554 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strstr)(char const   *__haystack ,   1554 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strstr)(char const   *__haystack ,
1555                                                                                        char const   *__needle )  __attribute__((__pure__)) ;   1555                                                                                        char const   *__needle )  __attribute__((__pure__)) ;
1556 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) strtok)(char * __restrict  __s ,   1556 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) strtok)(char * __restrict  __s ,
1557                                                                                      char const   * __restrict  __delim ) ;   1557                                                                                      char const   * __restrict  __delim ) ;
1558 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) __strtok_r)(char * __restrict  __s ,   1558 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) __strtok_r)(char * __restrict  __s ,
1559                                                                                            char const   * __restrict  __delim ,   1559                                                                                            char const   * __restrict  __delim ,
1560                                                                                            char ** __restrict  __save_ptr ) ;   1560                                                                                            char ** __restrict  __save_ptr ) ;
1561 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) strtok_r)(char * __restrict  __s ,   1561 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) strtok_r)(char * __restrict  __s ,
1562                                                                                          char const   * __restrict  __delim ,   1562                                                                                          char const   * __restrict  __delim ,
1563                                                                                          char ** __restrict  __save_ptr ) ;   1563                                                                                          char ** __restrict  __save_ptr ) ;
1564 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strlen)(char const   *__s )  __attribute__((__pure__)) ;   1564 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strlen)(char const   *__s )  __attribute__((__pure__)) ;
1565 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strnlen)(char const   *__string ,   1565 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strnlen)(char const   *__string ,
1566                                                                                        size_t __maxlen )  __attribute__((__pure__)) ;   1566                                                                                        size_t __maxlen )  __attribute__((__pure__)) ;
1567 extern  __attribute__((__nothrow__)) char *strerror(int __errnum ) ;   1567 extern  __attribute__((__nothrow__)) char *strerror(int __errnum ) ;
1568 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) strerror_r)(int __errnum ,   1568 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) strerror_r)(int __errnum ,
1569                                                                                        char *__buf ,   1569                                                                                        char *__buf ,
1570                                                                                        size_t __buflen )  __asm__("__xpg_strerror_r")  ;   1570                                                                                        size_t __buflen )  __asm__("__xpg_strerror_r")  ;
1571 extern  __attribute__((__nothrow__)) char *strerror_l(int __errnum ,   1571 extern  __attribute__((__nothrow__)) char *strerror_l(int __errnum ,
1572                                                       __locale_t __l ) ;   1572                                                       __locale_t __l ) ;
1573 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) __bzero)(void *__s ,   1573 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) __bzero)(void *__s ,
1574                                                                                      size_t __n ) ;   1574                                                                                      size_t __n ) ;
1575 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1,2))) bcopy)(void const   *__src ,   1575 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1,2))) bcopy)(void const   *__src ,
1576                                                                                      void *__dest ,   1576                                                                                      void *__dest ,
1577                                                                                      size_t __n ) ;   1577                                                                                      size_t __n ) ;
1578 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) bzero)(void *__s ,   1578 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) bzero)(void *__s ,
1579                                                                                    size_t __n ) ;   1579                                                                                    size_t __n ) ;
1580 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) bcmp)(void const   *__s1 ,   1580 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) bcmp)(void const   *__s1 ,
1581                                                                                    void const   *__s2 ,   1581                                                                                    void const   *__s2 ,
1582                                                                                    size_t __n )  __attribute__((__pure__)) ;   1582                                                                                    size_t __n )  __attribute__((__pure__)) ;
1583 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) index)(char const   *__s ,   1583 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) index)(char const   *__s ,
1584                                                                                     int __c )  __attribute__((__pure__)) ;   1584                                                                                     int __c )  __attribute__((__pure__)) ;
1585 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) rindex)(char const   *__s ,   1585 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) rindex)(char const   *__s ,
1586                                                                                      int __c )  __attribute__((__pure__)) ;   1586                                                                                      int __c )  __attribute__((__pure__)) ;
1587 extern  __attribute__((__nothrow__)) int ffs(int __i )  __attribute__((__const__)) ;   1587 extern  __attribute__((__nothrow__)) int ffs(int __i )  __attribute__((__const__)) ;
1588 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcasecmp)(char const   *__s1 ,   1588 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcasecmp)(char const   *__s1 ,
1589                                                                                          char const   *__s2 )  __attribute__((__pure__)) ;   1589                                                                                          char const   *__s2 )  __attribute__((__pure__)) ;
1590 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncasecmp)(char const   *__s1 ,   1590 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncasecmp)(char const   *__s1 ,
1591                                                                                           char const   *__s2 ,   1591                                                                                           char const   *__s2 ,
1592                                                                                           size_t __n )  __attribute__((__pure__)) ;   1592                                                                                           size_t __n )  __attribute__((__pure__)) ;
1593 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strsep)(char ** __restrict  __stringp ,   1593 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strsep)(char ** __restrict  __stringp ,
1594                                                                                        char const   * __restrict  __delim ) ;   1594                                                                                        char const   * __restrict  __delim ) ;
1595 extern  __attribute__((__nothrow__)) char *strsignal(int __sig ) ;   1595 extern  __attribute__((__nothrow__)) char *strsignal(int __sig ) ;
1596 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpcpy)(char * __restrict  __dest ,   1596 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpcpy)(char * __restrict  __dest ,
1597                                                                                          char const   * __restrict  __src ) ;   1597                                                                                          char const   * __restrict  __src ) ;
1598 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpcpy)(char * __restrict  __dest ,   1598 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpcpy)(char * __restrict  __dest ,
1599                                                                                        char const   * __restrict  __src ) ;   1599                                                                                        char const   * __restrict  __src ) ;
1600 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpncpy)(char * __restrict  __dest ,   1600 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpncpy)(char * __restrict  __dest ,
1601                                                                                           char const   * __restrict  __src ,   1601                                                                                           char const   * __restrict  __src ,
1602                                                                                           size_t __n ) ;   1602                                                                                           size_t __n ) ;
1603 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpncpy)(char * __restrict  __dest ,   1603 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpncpy)(char * __restrict  __dest ,
1604                                                                                         char const   * __restrict  __src ,   1604                                                                                         char const   * __restrict  __src ,
1605                                                                                         size_t __n ) ;   1605                                                                                         size_t __n ) ;
1606 extern void *__rawmemchr(void const   *__s , int __c ) ;   1606 extern void *__rawmemchr(void const   *__s , int __c ) ;
1607 __inline extern size_t __strcspn_c1(char const   *__s , int __reject ) ;   1607 __inline extern size_t __strcspn_c1(char const   *__s , int __reject ) ;
1608 __inline extern size_t __strcspn_c1(char const   *__s , int __reject )   1608 __inline extern size_t __strcspn_c1(char const   *__s , int __reject )
1609 {   1609 {
1610   register size_t __result ;   1610   register size_t __result ;
1611     1611  
1612   {   1612   {
1613   __result = (size_t )0;   1613   __result = (size_t )0;
1614   while (1) {   1614   while (1) {
1615     if ((int const   )*(__s + __result) != 0) {   1615     if ((int const   )*(__s + __result) != 0) {
1616       if ((int const   )*(__s + __result) != (int const   )__reject) {   1616       if ((int const   )*(__s + __result) != (int const   )__reject) {
1617     1617  
1618       } else {   1618       } else {
1619         break;   1619         break;
1620       }   1620       }
1621     } else {   1621     } else {
1622       break;   1622       break;
1623     }   1623     }
1624     __result ++;   1624     __result ++;
1625   }   1625   }
1626   return (__result);   1626   return (__result);
1627 }   1627 }
1628 }   1628 }
1629 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,   1629 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,
1630                                     int __reject2 ) ;   1630                                     int __reject2 ) ;
1631 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,   1631 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,
1632                                     int __reject2 )   1632                                     int __reject2 )
1633 {   1633 {
1634   register size_t __result ;   1634   register size_t __result ;
1635     1635  
1636   {   1636   {
1637   __result = (size_t )0;   1637   __result = (size_t )0;
1638   while (1) {   1638   while (1) {
1639     if ((int const   )*(__s + __result) != 0) {   1639     if ((int const   )*(__s + __result) != 0) {
1640       if ((int const   )*(__s + __result) != (int const   )__reject1) {   1640       if ((int const   )*(__s + __result) != (int const   )__reject1) {
1641         if ((int const   )*(__s + __result) != (int const   )__reject2) {   1641         if ((int const   )*(__s + __result) != (int const   )__reject2) {
1642     1642  
1643         } else {   1643         } else {
1644           break;   1644           break;
1645         }   1645         }
1646       } else {   1646       } else {
1647         break;   1647         break;
1648       }   1648       }
1649     } else {   1649     } else {
1650       break;   1650       break;
1651     }   1651     }
1652     __result ++;   1652     __result ++;
1653   }   1653   }
1654   return (__result);   1654   return (__result);
1655 }   1655 }
1656 }   1656 }
1657 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,   1657 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,
1658                                     int __reject2 , int __reject3 ) ;   1658                                     int __reject2 , int __reject3 ) ;
1659 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,   1659 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,
1660                                     int __reject2 , int __reject3 )   1660                                     int __reject2 , int __reject3 )
1661 {   1661 {
1662   register size_t __result ;   1662   register size_t __result ;
1663     1663  
1664   {   1664   {
1665   __result = (size_t )0;   1665   __result = (size_t )0;
1666   while (1) {   1666   while (1) {
1667     if ((int const   )*(__s + __result) != 0) {   1667     if ((int const   )*(__s + __result) != 0) {
1668       if ((int const   )*(__s + __result) != (int const   )__reject1) {   1668       if ((int const   )*(__s + __result) != (int const   )__reject1) {
1669         if ((int const   )*(__s + __result) != (int const   )__reject2) {   1669         if ((int const   )*(__s + __result) != (int const   )__reject2) {
1670           if ((int const   )*(__s + __result) != (int const   )__reject3) {   1670           if ((int const   )*(__s + __result) != (int const   )__reject3) {
1671     1671  
1672           } else {   1672           } else {
1673             break;   1673             break;
1674           }   1674           }
1675         } else {   1675         } else {
1676           break;   1676           break;
1677         }   1677         }
1678       } else {   1678       } else {
1679         break;   1679         break;
1680       }   1680       }
1681     } else {   1681     } else {
1682       break;   1682       break;
1683     }   1683     }
1684     __result ++;   1684     __result ++;
1685   }   1685   }
1686   return (__result);   1686   return (__result);
1687 }   1687 }
1688 }   1688 }
1689 __inline extern size_t __strspn_c1(char const   *__s , int __accept ) ;   1689 __inline extern size_t __strspn_c1(char const   *__s , int __accept ) ;
1690 __inline extern size_t __strspn_c1(char const   *__s , int __accept )   1690 __inline extern size_t __strspn_c1(char const   *__s , int __accept )
1691 {   1691 {
1692   register size_t __result ;   1692   register size_t __result ;
1693     1693  
1694   {   1694   {
1695   __result = (size_t )0;   1695   __result = (size_t )0;
1696   while ((int const   )*(__s + __result) == (int const   )__accept) {   1696   while ((int const   )*(__s + __result) == (int const   )__accept) {
1697     __result ++;   1697     __result ++;
1698   }   1698   }
1699   return (__result);   1699   return (__result);
1700 }   1700 }
1701 }   1701 }
1702 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,   1702 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,
1703                                    int __accept2 ) ;   1703                                    int __accept2 ) ;
1704 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,   1704 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,
1705                                    int __accept2 )   1705                                    int __accept2 )
1706 {   1706 {
1707   register size_t __result ;   1707   register size_t __result ;
1708     1708  
1709   {   1709   {
1710   __result = (size_t )0;   1710   __result = (size_t )0;
1711   while (1) {   1711   while (1) {
1712     if ((int const   )*(__s + __result) == (int const   )__accept1) {   1712     if ((int const   )*(__s + __result) == (int const   )__accept1) {
1713     1713  
1714     } else   1714     } else
1715     if ((int const   )*(__s + __result) == (int const   )__accept2) {   1715     if ((int const   )*(__s + __result) == (int const   )__accept2) {
1716     1716  
1717     } else {   1717     } else {
1718       break;   1718       break;
1719     }   1719     }
1720     __result ++;   1720     __result ++;
1721   }   1721   }
1722   return (__result);   1722   return (__result);
1723 }   1723 }
1724 }   1724 }
1725 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,   1725 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,
1726                                    int __accept2 , int __accept3 ) ;   1726                                    int __accept2 , int __accept3 ) ;
1727 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,   1727 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,
1728                                    int __accept2 , int __accept3 )   1728                                    int __accept2 , int __accept3 )
1729 {   1729 {
1730   register size_t __result ;   1730   register size_t __result ;
1731     1731  
1732   {   1732   {
1733   __result = (size_t )0;   1733   __result = (size_t )0;
1734   while (1) {   1734   while (1) {
1735     if ((int const   )*(__s + __result) == (int const   )__accept1) {   1735     if ((int const   )*(__s + __result) == (int const   )__accept1) {
1736     1736  
1737     } else   1737     } else
1738     if ((int const   )*(__s + __result) == (int const   )__accept2) {   1738     if ((int const   )*(__s + __result) == (int const   )__accept2) {
1739     1739  
1740     } else   1740     } else
1741     if ((int const   )*(__s + __result) == (int const   )__accept3) {   1741     if ((int const   )*(__s + __result) == (int const   )__accept3) {
1742     1742  
1743     } else {   1743     } else {
1744       break;   1744       break;
1745     }   1745     }
1746     __result ++;   1746     __result ++;
1747   }   1747   }
1748   return (__result);   1748   return (__result);
1749 }   1749 }
1750 }   1750 }
1751 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,   1751 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,
1752                                    int __accept2 ) ;   1752                                    int __accept2 ) ;
1753 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,   1753 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,
1754                                    int __accept2 )   1754                                    int __accept2 )
1755 {   1755 {
1756   char *tmp ;   1756   char *tmp ;
1757     1757  
1758   {   1758   {
1759   while (1) {   1759   while (1) {
1760     if ((int const   )*__s != 0) {   1760     if ((int const   )*__s != 0) {
1761       if ((int const   )*__s != (int const   )__accept1) {   1761       if ((int const   )*__s != (int const   )__accept1) {
1762         if ((int const   )*__s != (int const   )__accept2) {   1762         if ((int const   )*__s != (int const   )__accept2) {
1763     1763  
1764         } else {   1764         } else {
1765           break;   1765           break;
1766         }   1766         }
1767       } else {   1767       } else {
1768         break;   1768         break;
1769       }   1769       }
1770     } else {   1770     } else {
1771       break;   1771       break;
1772     }   1772     }
1773     __s ++;   1773     __s ++;
1774   }   1774   }
1775   if ((int const   )*__s == 0) {   1775   if ((int const   )*__s == 0) {
1776     tmp = (char *)((void *)0);   1776     tmp = (char *)((void *)0);
1777   } else {   1777   } else {
1778     tmp = (char *)((size_t )__s);   1778     tmp = (char *)((size_t )__s);
1779   }   1779   }
1780   return (tmp);   1780   return (tmp);
1781 }   1781 }
1782 }   1782 }
1783 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,   1783 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,
1784                                    int __accept2 , int __accept3 ) ;   1784                                    int __accept2 , int __accept3 ) ;
1785 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,   1785 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,
1786                                    int __accept2 , int __accept3 )   1786                                    int __accept2 , int __accept3 )
1787 {   1787 {
1788   char *tmp ;   1788   char *tmp ;
1789     1789  
1790   {   1790   {
1791   while (1) {   1791   while (1) {
1792     if ((int const   )*__s != 0) {   1792     if ((int const   )*__s != 0) {
1793       if ((int const   )*__s != (int const   )__accept1) {   1793       if ((int const   )*__s != (int const   )__accept1) {
1794         if ((int const   )*__s != (int const   )__accept2) {   1794         if ((int const   )*__s != (int const   )__accept2) {
1795           if ((int const   )*__s != (int const   )__accept3) {   1795           if ((int const   )*__s != (int const   )__accept3) {
1796     1796  
1797           } else {   1797           } else {
1798             break;   1798             break;
1799           }   1799           }
1800         } else {   1800         } else {
1801           break;   1801           break;
1802         }   1802         }
1803       } else {   1803       } else {
1804         break;   1804         break;
1805       }   1805       }
1806     } else {   1806     } else {
1807       break;   1807       break;
1808     }   1808     }
1809     __s ++;   1809     __s ++;
1810   }   1810   }
1811   if ((int const   )*__s == 0) {   1811   if ((int const   )*__s == 0) {
1812     tmp = (char *)((void *)0);   1812     tmp = (char *)((void *)0);
1813   } else {   1813   } else {
1814     tmp = (char *)((size_t )__s);   1814     tmp = (char *)((size_t )__s);
1815   }   1815   }
1816   return (tmp);   1816   return (tmp);
1817 }   1817 }
1818 }   1818 }
1819 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp ) ;   1819 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp ) ;
1820 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp )   1820 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp )
1821 {   1821 {
1822   char *__result ;   1822   char *__result ;
1823   char *tmp ;   1823   char *tmp ;
1824   char *tmp___0 ;   1824   char *tmp___0 ;
1825     1825  
1826   {   1826   {
1827   if ((unsigned int )__s == (unsigned int )((void *)0)) {   1827   if ((unsigned int )__s == (unsigned int )((void *)0)) {
1828     __s = *__nextp;   1828     __s = *__nextp;
1829   } else {   1829   } else {
1830     1830  
1831   }   1831   }
1832   while ((int )*__s == (int )__sep) {   1832   while ((int )*__s == (int )__sep) {
1833     __s ++;   1833     __s ++;
1834   }   1834   }
1835   __result = (char *)((void *)0);   1835   __result = (char *)((void *)0);
1836   if ((int )*__s != 0) {   1836   if ((int )*__s != 0) {
1837     tmp = __s;   1837     tmp = __s;
1838     __s ++;   1838     __s ++;
1839     __result = tmp;   1839     __result = tmp;
1840     while ((int )*__s != 0) {   1840     while ((int )*__s != 0) {
1841       tmp___0 = __s;   1841       tmp___0 = __s;
1842       __s ++;   1842       __s ++;
1843       if ((int )*tmp___0 == (int )__sep) {   1843       if ((int )*tmp___0 == (int )__sep) {
1844         *(__s + -1) = (char )'\000';   1844         *(__s + -1) = (char )'\000';
1845         break;   1845         break;
1846       } else {   1846       } else {
1847     1847  
1848       }   1848       }
1849     }   1849     }
1850   } else {   1850   } else {
1851     1851  
1852   }   1852   }
1853   *__nextp = __s;   1853   *__nextp = __s;
1854   return (__result);   1854   return (__result);
1855 }   1855 }
1856 }   1856 }
1857 extern char *__strsep_g(char **__stringp , char const   *__delim ) ;   1857 extern char *__strsep_g(char **__stringp , char const   *__delim ) ;
1858 __inline extern char *__strsep_1c(char **__s , char __reject ) ;   1858 __inline extern char *__strsep_1c(char **__s , char __reject ) ;
1859 __inline extern char *__strsep_1c(char **__s , char __reject )   1859 __inline extern char *__strsep_1c(char **__s , char __reject )
1860 {   1860 {
1861   register char *__retval ;   1861   register char *__retval ;
1862   char *tmp ;   1862   char *tmp ;
1863   char *tmp___0 ;   1863   char *tmp___0 ;
1864   void *tmp___1 ;   1864   void *tmp___1 ;
1865   char *tmp___2 ;   1865   char *tmp___2 ;
1866     1866  
1867   {   1867   {
1868   __retval = *__s;   1868   __retval = *__s;
1869   if ((unsigned int )__retval != (unsigned int )((void *)0)) {   1869   if ((unsigned int )__retval != (unsigned int )((void *)0)) {
1870     tmp___2 = __builtin_strchr(__retval, (int )__reject);   1870     tmp___2 = __builtin_strchr(__retval, (int )__reject);
1871     tmp___0 = tmp___2;   1871     tmp___0 = tmp___2;
1872     *__s = tmp___0;   1872     *__s = tmp___0;
1873     if ((unsigned int )tmp___0 != (unsigned int )((void *)0)) {   1873     if ((unsigned int )tmp___0 != (unsigned int )((void *)0)) {
1874       tmp = *__s;   1874       tmp = *__s;
1875       (*__s) ++;   1875       (*__s) ++;
1876       *tmp = (char )'\000';   1876       *tmp = (char )'\000';
1877     } else {   1877     } else {
1878     1878  
1879     }   1879     }
1880   } else {   1880   } else {
1881     1881  
1882   }   1882   }
1883   return (__retval);   1883   return (__retval);
1884 }   1884 }
1885 }   1885 }
1886 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 ) ;   1886 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 ) ;
1887 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 )   1887 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 )
1888 {   1888 {
1889   register char *__retval ;   1889   register char *__retval ;
1890   register char *__cp ;   1890   register char *__cp ;
1891   char *tmp ;   1891   char *tmp ;
1892     1892  
1893   {   1893   {
1894   __retval = *__s;   1894   __retval = *__s;
1895   if ((unsigned int )__retval != (unsigned int )((void *)0)) {   1895   if ((unsigned int )__retval != (unsigned int )((void *)0)) {
1896     __cp = __retval;   1896     __cp = __retval;
1897     while (1) {   1897     while (1) {
1898       if ((int )*__cp == 0) {   1898       if ((int )*__cp == 0) {
1899         __cp = (char *)((void *)0);   1899         __cp = (char *)((void *)0);
1900         break;   1900         break;
1901       } else {   1901       } else {
1902     1902  
1903       }   1903       }
1904       if ((int )*__cp == (int )__reject1) {   1904       if ((int )*__cp == (int )__reject1) {
1905         tmp = __cp;   1905         tmp = __cp;
1906         __cp ++;   1906         __cp ++;
1907         *tmp = (char )'\000';   1907         *tmp = (char )'\000';
1908         break;   1908         break;
1909       } else   1909       } else
1910       if ((int )*__cp == (int )__reject2) {   1910       if ((int )*__cp == (int )__reject2) {
1911         tmp = __cp;   1911         tmp = __cp;
1912         __cp ++;   1912         __cp ++;
1913         *tmp = (char )'\000';   1913         *tmp = (char )'\000';
1914         break;   1914         break;
1915       } else {   1915       } else {
1916     1916  
1917       }   1917       }
1918       __cp ++;   1918       __cp ++;
1919     }   1919     }
1920     *__s = __cp;   1920     *__s = __cp;
1921   } else {   1921   } else {
1922     1922  
1923   }   1923   }
1924   return (__retval);   1924   return (__retval);
1925 }   1925 }
1926 }   1926 }
1927 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,   1927 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,
1928                                   char __reject3 ) ;   1928                                   char __reject3 ) ;
1929 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,   1929 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,
1930                                   char __reject3 )   1930                                   char __reject3 )
1931 {   1931 {
1932   register char *__retval ;   1932   register char *__retval ;
1933   register char *__cp ;   1933   register char *__cp ;
1934   char *tmp ;   1934   char *tmp ;
1935     1935  
1936   {   1936   {
1937   __retval = *__s;   1937   __retval = *__s;
1938   if ((unsigned int )__retval != (unsigned int )((void *)0)) {   1938   if ((unsigned int )__retval != (unsigned int )((void *)0)) {
1939     __cp = __retval;   1939     __cp = __retval;
1940     while (1) {   1940     while (1) {
1941       if ((int )*__cp == 0) {   1941       if ((int )*__cp == 0) {
1942         __cp = (char *)((void *)0);   1942         __cp = (char *)((void *)0);
1943         break;   1943         break;
1944       } else {   1944       } else {
1945     1945  
1946       }   1946       }
1947       if ((int )*__cp == (int )__reject1) {   1947       if ((int )*__cp == (int )__reject1) {
1948         tmp = __cp;   1948         tmp = __cp;
1949         __cp ++;   1949         __cp ++;
1950         *tmp = (char )'\000';   1950         *tmp = (char )'\000';
1951         break;   1951         break;
1952       } else   1952       } else
1953       if ((int )*__cp == (int )__reject2) {   1953       if ((int )*__cp == (int )__reject2) {
1954         tmp = __cp;   1954         tmp = __cp;
1955         __cp ++;   1955         __cp ++;
1956         *tmp = (char )'\000';   1956         *tmp = (char )'\000';
1957         break;   1957         break;
1958       } else   1958       } else
1959       if ((int )*__cp == (int )__reject3) {   1959       if ((int )*__cp == (int )__reject3) {
1960         tmp = __cp;   1960         tmp = __cp;
1961         __cp ++;   1961         __cp ++;
1962         *tmp = (char )'\000';   1962         *tmp = (char )'\000';
1963         break;   1963         break;
1964       } else {   1964       } else {
1965     1965  
1966       }   1966       }
1967       __cp ++;   1967       __cp ++;
1968     }   1968     }
1969     *__s = __cp;   1969     *__s = __cp;
1970   } else {   1970   } else {
1971     1971  
1972   }   1972   }
1973   return (__retval);   1973   return (__retval);
1974 }   1974 }
1975 }   1975 }
1976 extern  __attribute__((__nothrow__)) char *__strdup(char const   *__string )  __attribute__((__malloc__)) ;   1976 extern  __attribute__((__nothrow__)) char *__strdup(char const   *__string )  __attribute__((__malloc__)) ;
1977 extern  __attribute__((__nothrow__)) char *__strndup(char const   *__string ,   1977 extern  __attribute__((__nothrow__)) char *__strndup(char const   *__string ,
1978                                                      size_t __n )  __attribute__((__malloc__)) ;   1978                                                      size_t __n )  __attribute__((__malloc__)) ;
1979 extern  __attribute__((__nothrow__)) unsigned short const   **__ctype_b_loc(void)  __attribute__((__const__)) ;   1979 extern  __attribute__((__nothrow__)) unsigned short const   **__ctype_b_loc(void)  __attribute__((__const__)) ;
1980 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_tolower_loc(void)  __attribute__((__const__)) ;   1980 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_tolower_loc(void)  __attribute__((__const__)) ;
1981 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_toupper_loc(void)  __attribute__((__const__)) ;   1981 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_toupper_loc(void)  __attribute__((__const__)) ;
1982 extern  __attribute__((__nothrow__)) int isalnum(int  ) ;   1982 extern  __attribute__((__nothrow__)) int isalnum(int  ) ;
1983 extern  __attribute__((__nothrow__)) int isalpha(int  ) ;   1983 extern  __attribute__((__nothrow__)) int isalpha(int  ) ;
1984 extern  __attribute__((__nothrow__)) int iscntrl(int  ) ;   1984 extern  __attribute__((__nothrow__)) int iscntrl(int  ) ;
1985 extern  __attribute__((__nothrow__)) int isdigit(int  ) ;   1985 extern  __attribute__((__nothrow__)) int isdigit(int  ) ;
1986 extern  __attribute__((__nothrow__)) int islower(int  ) ;   1986 extern  __attribute__((__nothrow__)) int islower(int  ) ;
1987 extern  __attribute__((__nothrow__)) int isgraph(int  ) ;   1987 extern  __attribute__((__nothrow__)) int isgraph(int  ) ;
1988 extern  __attribute__((__nothrow__)) int isprint(int  ) ;   1988 extern  __attribute__((__nothrow__)) int isprint(int  ) ;
1989 extern  __attribute__((__nothrow__)) int ispunct(int  ) ;   1989 extern  __attribute__((__nothrow__)) int ispunct(int  ) ;
1990 extern  __attribute__((__nothrow__)) int isspace(int  ) ;   1990 extern  __attribute__((__nothrow__)) int isspace(int  ) ;
1991 extern  __attribute__((__nothrow__)) int isupper(int  ) ;   1991 extern  __attribute__((__nothrow__)) int isupper(int  ) ;
1992 extern  __attribute__((__nothrow__)) int isxdigit(int  ) ;   1992 extern  __attribute__((__nothrow__)) int isxdigit(int  ) ;
1993 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;   1993 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;
1994 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;   1994 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;
1995 extern  __attribute__((__nothrow__)) int isblank(int  ) ;   1995 extern  __attribute__((__nothrow__)) int isblank(int  ) ;
1996 extern  __attribute__((__nothrow__)) int isascii(int __c ) ;   1996 extern  __attribute__((__nothrow__)) int isascii(int __c ) ;
1997 extern  __attribute__((__nothrow__)) int toascii(int __c ) ;   1997 extern  __attribute__((__nothrow__)) int toascii(int __c ) ;
1998 extern  __attribute__((__nothrow__)) int _toupper(int  ) ;   1998 extern  __attribute__((__nothrow__)) int _toupper(int  ) ;
1999 extern  __attribute__((__nothrow__)) int _tolower(int  ) ;   1999 extern  __attribute__((__nothrow__)) int _tolower(int  ) ;
2000 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;   2000 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;
2001 __inline extern int tolower(int __c )   2001 __inline extern int tolower(int __c )
2002 {   2002 {
2003   __int32_t const   **tmp ;   2003   __int32_t const   **tmp ;
2004   __int32_t tmp___0 ;   2004   __int32_t tmp___0 ;
2005     2005  
2006   {   2006   {
2007   if (__c >= -128) {   2007   if (__c >= -128) {
2008     if (__c < 256) {   2008     if (__c < 256) {
2009       tmp = __ctype_tolower_loc();   2009       tmp = __ctype_tolower_loc();
2010       tmp___0 = *(*tmp + __c);   2010       tmp___0 = *(*tmp + __c);
2011     } else {   2011     } else {
2012       tmp___0 = (__int32_t const   )__c;   2012       tmp___0 = (__int32_t const   )__c;
2013     }   2013     }
2014   } else {   2014   } else {
2015     tmp___0 = (__int32_t const   )__c;   2015     tmp___0 = (__int32_t const   )__c;
2016   }   2016   }
2017   return ((int )tmp___0);   2017   return ((int )tmp___0);
2018 }   2018 }
2019 }   2019 }
2020 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;   2020 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;
2021 __inline extern int toupper(int __c )   2021 __inline extern int toupper(int __c )
2022 {   2022 {
2023   __int32_t const   **tmp ;   2023   __int32_t const   **tmp ;
2024   __int32_t tmp___0 ;   2024   __int32_t tmp___0 ;
2025     2025  
2026   {   2026   {
2027   if (__c >= -128) {   2027   if (__c >= -128) {
2028     if (__c < 256) {   2028     if (__c < 256) {
2029       tmp = __ctype_toupper_loc();   2029       tmp = __ctype_toupper_loc();
2030       tmp___0 = *(*tmp + __c);   2030       tmp___0 = *(*tmp + __c);
2031     } else {   2031     } else {
2032       tmp___0 = (__int32_t const   )__c;   2032       tmp___0 = (__int32_t const   )__c;
2033     }   2033     }
2034   } else {   2034   } else {
2035     tmp___0 = (__int32_t const   )__c;   2035     tmp___0 = (__int32_t const   )__c;
2036   }   2036   }
2037   return ((int )tmp___0);   2037   return ((int )tmp___0);
2038 }   2038 }
2039 }   2039 }
2040 extern  __attribute__((__nothrow__)) int isalnum_l(int  , __locale_t  ) ;   2040 extern  __attribute__((__nothrow__)) int isalnum_l(int  , __locale_t  ) ;
2041 extern  __attribute__((__nothrow__)) int isalpha_l(int  , __locale_t  ) ;   2041 extern  __attribute__((__nothrow__)) int isalpha_l(int  , __locale_t  ) ;
2042 extern  __attribute__((__nothrow__)) int iscntrl_l(int  , __locale_t  ) ;   2042 extern  __attribute__((__nothrow__)) int iscntrl_l(int  , __locale_t  ) ;
2043 extern  __attribute__((__nothrow__)) int isdigit_l(int  , __locale_t  ) ;   2043 extern  __attribute__((__nothrow__)) int isdigit_l(int  , __locale_t  ) ;
2044 extern  __attribute__((__nothrow__)) int islower_l(int  , __locale_t  ) ;   2044 extern  __attribute__((__nothrow__)) int islower_l(int  , __locale_t  ) ;
2045 extern  __attribute__((__nothrow__)) int isgraph_l(int  , __locale_t  ) ;   2045 extern  __attribute__((__nothrow__)) int isgraph_l(int  , __locale_t  ) ;
2046 extern  __attribute__((__nothrow__)) int isprint_l(int  , __locale_t  ) ;   2046 extern  __attribute__((__nothrow__)) int isprint_l(int  , __locale_t  ) ;
2047 extern  __attribute__((__nothrow__)) int ispunct_l(int  , __locale_t  ) ;   2047 extern  __attribute__((__nothrow__)) int ispunct_l(int  , __locale_t  ) ;
2048 extern  __attribute__((__nothrow__)) int isspace_l(int  , __locale_t  ) ;   2048 extern  __attribute__((__nothrow__)) int isspace_l(int  , __locale_t  ) ;
2049 extern  __attribute__((__nothrow__)) int isupper_l(int  , __locale_t  ) ;   2049 extern  __attribute__((__nothrow__)) int isupper_l(int  , __locale_t  ) ;
2050 extern  __attribute__((__nothrow__)) int isxdigit_l(int  , __locale_t  ) ;   2050 extern  __attribute__((__nothrow__)) int isxdigit_l(int  , __locale_t  ) ;
2051 extern  __attribute__((__nothrow__)) int isblank_l(int  , __locale_t  ) ;   2051 extern  __attribute__((__nothrow__)) int isblank_l(int  , __locale_t  ) ;
2052 extern  __attribute__((__nothrow__)) int __tolower_l(int __c , __locale_t __l ) ;   2052 extern  __attribute__((__nothrow__)) int __tolower_l(int __c , __locale_t __l ) ;
2053 extern  __attribute__((__nothrow__)) int tolower_l(int __c , __locale_t __l ) ;   2053 extern  __attribute__((__nothrow__)) int tolower_l(int __c , __locale_t __l ) ;
2054 extern  __attribute__((__nothrow__)) int __toupper_l(int __c , __locale_t __l ) ;   2054 extern  __attribute__((__nothrow__)) int __toupper_l(int __c , __locale_t __l ) ;
2055 extern  __attribute__((__nothrow__)) int toupper_l(int __c , __locale_t __l ) ;   2055 extern  __attribute__((__nothrow__)) int toupper_l(int __c , __locale_t __l ) ;
2056 extern  __attribute__((__nothrow__,   2056 extern  __attribute__((__nothrow__,
2057 __noreturn__)) void __assert_fail(char const   *__assertion ,   2057 __noreturn__)) void __assert_fail(char const   *__assertion ,
2058                                   char const   *__file , unsigned int __line ,   2058                                   char const   *__file , unsigned int __line ,
2059                                   char const   *__function ) ;   2059                                   char const   *__function ) ;
2060 extern  __attribute__((__nothrow__,   2060 extern  __attribute__((__nothrow__,
2061 __noreturn__)) void __assert_perror_fail(int __errnum , char const   *__file ,   2061 __noreturn__)) void __assert_perror_fail(int __errnum , char const   *__file ,
2062                                          unsigned int __line ,   2062                                          unsigned int __line ,
2063                                          char const   *__function ) ;   2063                                          char const   *__function ) ;
2064 extern  __attribute__((__nothrow__,   2064 extern  __attribute__((__nothrow__,
2065 __noreturn__)) void __assert(char const   *__assertion , char const   *__file ,   2065 __noreturn__)) void __assert(char const   *__assertion , char const   *__file ,
2066                              int __line ) ;   2066                              int __line ) ;
2067 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) access)(char const   *__name ,   2067 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) access)(char const   *__name ,
2068                                                                                    int __type ) ;   2068                                                                                    int __type ) ;
2069 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) faccessat)(int __fd ,   2069 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) faccessat)(int __fd ,
2070                                                                                       char const   *__file ,   2070                                                                                       char const   *__file ,
2071                                                                                       int __type ,   2071                                                                                       int __type ,
2072                                                                                       int __flag ) ;   2072                                                                                       int __flag ) ;
2073 extern  __attribute__((__nothrow__)) __off64_t lseek(int __fd ,   2073 extern  __attribute__((__nothrow__)) __off64_t lseek(int __fd ,
2074                                                      __off64_t __offset ,   2074                                                      __off64_t __offset ,
2075                                                      int __whence )  __asm__("lseek64")  ;   2075                                                      int __whence )  __asm__("lseek64")  ;
2076 extern int close(int __fd ) ;   2076 extern int close(int __fd ) ;
2077 extern ssize_t read(int __fd , void *__buf , size_t __nbytes ) ;   2077 extern ssize_t read(int __fd , void *__buf , size_t __nbytes ) ;
2078 extern ssize_t write(int __fd , void const   *__buf , size_t __n ) ;   2078 extern ssize_t write(int __fd , void const   *__buf , size_t __n ) ;
2079 extern ssize_t pread(int __fd , void *__buf , size_t __nbytes ,   2079 extern ssize_t pread(int __fd , void *__buf , size_t __nbytes ,
2080                      __off64_t __offset )  __asm__("pread64")  ;   2080                      __off64_t __offset )  __asm__("pread64")  ;
2081 extern ssize_t pwrite(int __fd , void const   *__buf , size_t __nbytes ,   2081 extern ssize_t pwrite(int __fd , void const   *__buf , size_t __nbytes ,
2082                       __off64_t __offset )  __asm__("pwrite64")  ;   2082                       __off64_t __offset )  __asm__("pwrite64")  ;
2083 extern  __attribute__((__nothrow__)) int pipe(int *__pipedes ) ;   2083 extern  __attribute__((__nothrow__)) int pipe(int *__pipedes ) ;
2084 extern  __attribute__((__nothrow__)) unsigned int alarm(unsigned int __seconds ) ;   2084 extern  __attribute__((__nothrow__)) unsigned int alarm(unsigned int __seconds ) ;
2085 extern unsigned int sleep(unsigned int __seconds ) ;   2085 extern unsigned int sleep(unsigned int __seconds ) ;
2086 extern  __attribute__((__nothrow__)) __useconds_t ualarm(__useconds_t __value ,   2086 extern  __attribute__((__nothrow__)) __useconds_t ualarm(__useconds_t __value ,
2087                                                          __useconds_t __interval ) ;   2087                                                          __useconds_t __interval ) ;
2088 extern int usleep(__useconds_t __useconds ) ;   2088 extern int usleep(__useconds_t __useconds ) ;
2089 extern int pause(void) ;   2089 extern int pause(void) ;
2090 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chown)(char const   *__file ,   2090 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chown)(char const   *__file ,
2091                                                                                   __uid_t __owner ,   2091                                                                                   __uid_t __owner ,
2092                                                                                   __gid_t __group ) ;   2092                                                                                   __gid_t __group ) ;
2093 extern  __attribute__((__nothrow__)) int fchown(int __fd , __uid_t __owner ,   2093 extern  __attribute__((__nothrow__)) int fchown(int __fd , __uid_t __owner ,
2094                                                 __gid_t __group ) ;   2094                                                 __gid_t __group ) ;
2095 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) lchown)(char const   *__file ,   2095 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) lchown)(char const   *__file ,
2096                                                                                    __uid_t __owner ,   2096                                                                                    __uid_t __owner ,
2097                                                                                    __gid_t __group ) ;   2097                                                                                    __gid_t __group ) ;
2098 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fchownat)(int __fd ,   2098 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fchownat)(int __fd ,
2099                                                                                      char const   *__file ,   2099                                                                                      char const   *__file ,
2100                                                                                      __uid_t __owner ,   2100                                                                                      __uid_t __owner ,
2101                                                                                      __gid_t __group ,   2101                                                                                      __gid_t __group ,
2102                                                                                      int __flag ) ;   2102                                                                                      int __flag ) ;
2103 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chdir)(char const   *__path ) ;   2103 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chdir)(char const   *__path ) ;
2104 extern  __attribute__((__nothrow__)) int fchdir(int __fd ) ;   2104 extern  __attribute__((__nothrow__)) int fchdir(int __fd ) ;
2105 extern  __attribute__((__nothrow__)) char *getcwd(char *__buf , size_t __size ) ;   2105 extern  __attribute__((__nothrow__)) char *getcwd(char *__buf , size_t __size ) ;
2106 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getwd)(char *__buf )  __attribute__((__deprecated__)) ;   2106 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getwd)(char *__buf )  __attribute__((__deprecated__)) ;
2107 extern  __attribute__((__nothrow__)) int dup(int __fd ) ;   2107 extern  __attribute__((__nothrow__)) int dup(int __fd ) ;
2108 extern  __attribute__((__nothrow__)) int dup2(int __fd , int __fd2 ) ;   2108 extern  __attribute__((__nothrow__)) int dup2(int __fd , int __fd2 ) ;
2109 extern char **__environ ;   2109 extern char **__environ ;
2110 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execve)(char const   *__path ,   2110 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execve)(char const   *__path ,
2111                                                                                      char * const  *__argv ,   2111                                                                                      char * const  *__argv ,
2112                                                                                      char * const  *__envp ) ;   2112                                                                                      char * const  *__envp ) ;
2113 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fexecve)(int __fd ,   2113 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fexecve)(int __fd ,
2114                                                                                     char * const  *__argv ,   2114                                                                                     char * const  *__argv ,
2115                                                                                     char * const  *__envp ) ;   2115                                                                                     char * const  *__envp ) ;
2116 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execv)(char const   *__path ,   2116 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execv)(char const   *__path ,
2117                                                                                     char * const  *__argv ) ;   2117                                                                                     char * const  *__argv ) ;
2118 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execle)(char const   *__path ,   2118 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execle)(char const   *__path ,
2119                                                                                      char const   *__arg   2119                                                                                      char const   *__arg
2120                                                                                      , ...) ;   2120                                                                                      , ...) ;
2121 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execl)(char const   *__path ,   2121 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execl)(char const   *__path ,
2122                                                                                     char const   *__arg   2122                                                                                     char const   *__arg
2123                                                                                     , ...) ;   2123                                                                                     , ...) ;
2124 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execvp)(char const   *__file ,   2124 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execvp)(char const   *__file ,
2125                                                                                      char * const  *__argv ) ;   2125                                                                                      char * const  *__argv ) ;
2126 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execlp)(char const   *__file ,   2126 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execlp)(char const   *__file ,
2127                                                                                      char const   *__arg   2127                                                                                      char const   *__arg
2128                                                                                      , ...) ;   2128                                                                                      , ...) ;
2129 extern  __attribute__((__nothrow__)) int nice(int __inc ) ;   2129 extern  __attribute__((__nothrow__)) int nice(int __inc ) ;
2130 extern  __attribute__((__noreturn__)) void _exit(int __status ) ;   2130 extern  __attribute__((__noreturn__)) void _exit(int __status ) ;
2131 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) pathconf)(char const   *__path ,   2131 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) pathconf)(char const   *__path ,
2132                                                                                       int __name ) ;   2132                                                                                       int __name ) ;
2133 extern  __attribute__((__nothrow__)) long fpathconf(int __fd , int __name ) ;   2133 extern  __attribute__((__nothrow__)) long fpathconf(int __fd , int __name ) ;
2134 extern  __attribute__((__nothrow__)) long sysconf(int __name ) ;   2134 extern  __attribute__((__nothrow__)) long sysconf(int __name ) ;
2135 extern  __attribute__((__nothrow__)) size_t confstr(int __name , char *__buf ,   2135 extern  __attribute__((__nothrow__)) size_t confstr(int __name , char *__buf ,
2136                                                     size_t __len ) ;   2136                                                     size_t __len ) ;
2137 extern  __attribute__((__nothrow__)) __pid_t getpid(void) ;   2137 extern  __attribute__((__nothrow__)) __pid_t getpid(void) ;
2138 extern  __attribute__((__nothrow__)) __pid_t getppid(void) ;   2138 extern  __attribute__((__nothrow__)) __pid_t getppid(void) ;
2139 extern  __attribute__((__nothrow__)) __pid_t getpgrp(void) ;   2139 extern  __attribute__((__nothrow__)) __pid_t getpgrp(void) ;
2140 extern  __attribute__((__nothrow__)) __pid_t __getpgid(__pid_t __pid ) ;   2140 extern  __attribute__((__nothrow__)) __pid_t __getpgid(__pid_t __pid ) ;
2141 extern  __attribute__((__nothrow__)) __pid_t getpgid(__pid_t __pid ) ;   2141 extern  __attribute__((__nothrow__)) __pid_t getpgid(__pid_t __pid ) ;
2142 extern  __attribute__((__nothrow__)) int setpgid(__pid_t __pid , __pid_t __pgid ) ;   2142 extern  __attribute__((__nothrow__)) int setpgid(__pid_t __pid , __pid_t __pgid ) ;
2143 extern  __attribute__((__nothrow__)) int setpgrp(void) ;   2143 extern  __attribute__((__nothrow__)) int setpgrp(void) ;
2144 extern  __attribute__((__nothrow__)) __pid_t setsid(void) ;   2144 extern  __attribute__((__nothrow__)) __pid_t setsid(void) ;
2145 extern  __attribute__((__nothrow__)) __pid_t getsid(__pid_t __pid ) ;   2145 extern  __attribute__((__nothrow__)) __pid_t getsid(__pid_t __pid ) ;
2146 extern  __attribute__((__nothrow__)) __uid_t getuid(void) ;   2146 extern  __attribute__((__nothrow__)) __uid_t getuid(void) ;
2147 extern  __attribute__((__nothrow__)) __uid_t geteuid(void) ;   2147 extern  __attribute__((__nothrow__)) __uid_t geteuid(void) ;
2148 extern  __attribute__((__nothrow__)) __gid_t getgid(void) ;   2148 extern  __attribute__((__nothrow__)) __gid_t getgid(void) ;
2149 extern  __attribute__((__nothrow__)) __gid_t getegid(void) ;   2149 extern  __attribute__((__nothrow__)) __gid_t getegid(void) ;
2150 extern  __attribute__((__nothrow__)) int getgroups(int __size , __gid_t *__list ) ;   2150 extern  __attribute__((__nothrow__)) int getgroups(int __size , __gid_t *__list ) ;
2151 extern  __attribute__((__nothrow__)) int setuid(__uid_t __uid ) ;   2151 extern  __attribute__((__nothrow__)) int setuid(__uid_t __uid ) ;
2152 extern  __attribute__((__nothrow__)) int setreuid(__uid_t __ruid ,   2152 extern  __attribute__((__nothrow__)) int setreuid(__uid_t __ruid ,
2153                                                   __uid_t __euid ) ;   2153                                                   __uid_t __euid ) ;
2154 extern  __attribute__((__nothrow__)) int seteuid(__uid_t __uid ) ;   2154 extern  __attribute__((__nothrow__)) int seteuid(__uid_t __uid ) ;
2155 extern  __attribute__((__nothrow__)) int setgid(__gid_t __gid ) ;   2155 extern  __attribute__((__nothrow__)) int setgid(__gid_t __gid ) ;
2156 extern  __attribute__((__nothrow__)) int setregid(__gid_t __rgid ,   2156 extern  __attribute__((__nothrow__)) int setregid(__gid_t __rgid ,
2157                                                   __gid_t __egid ) ;   2157                                                   __gid_t __egid ) ;
2158 extern  __attribute__((__nothrow__)) int setegid(__gid_t __gid ) ;   2158 extern  __attribute__((__nothrow__)) int setegid(__gid_t __gid ) ;
2159 extern  __attribute__((__nothrow__)) __pid_t fork(void) ;   2159 extern  __attribute__((__nothrow__)) __pid_t fork(void) ;
2160 extern  __attribute__((__nothrow__)) __pid_t vfork(void) ;   2160 extern  __attribute__((__nothrow__)) __pid_t vfork(void) ;
2161 extern  __attribute__((__nothrow__)) char *ttyname(int __fd ) ;   2161 extern  __attribute__((__nothrow__)) char *ttyname(int __fd ) ;
2162 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) ttyname_r)(int __fd ,   2162 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) ttyname_r)(int __fd ,
2163                                                                                       char *__buf ,   2163                                                                                       char *__buf ,
2164                                                                                       size_t __buflen ) ;   2164                                                                                       size_t __buflen ) ;
2165 extern  __attribute__((__nothrow__)) int isatty(int __fd ) ;   2165 extern  __attribute__((__nothrow__)) int isatty(int __fd ) ;
2166 extern  __attribute__((__nothrow__)) int ttyslot(void) ;   2166 extern  __attribute__((__nothrow__)) int ttyslot(void) ;
2167 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) link)(char const   *__from ,   2167 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) link)(char const   *__from ,
2168                                                                                    char const   *__to ) ;   2168                                                                                    char const   *__to ) ;
2169 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) linkat)(int __fromfd ,   2169 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) linkat)(int __fromfd ,
2170                                                                                      char const   *__from ,   2170                                                                                      char const   *__from ,
2171                                                                                      int __tofd ,   2171                                                                                      int __tofd ,
2172                                                                                      char const   *__to ,   2172                                                                                      char const   *__to ,
2173                                                                                      int __flags ) ;   2173                                                                                      int __flags ) ;
2174 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) symlink)(char const   *__from ,   2174 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) symlink)(char const   *__from ,
2175                                                                                       char const   *__to ) ;   2175                                                                                       char const   *__to ) ;
2176 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(1,2))) readlink)(char const   * __restrict  __path ,   2176 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(1,2))) readlink)(char const   * __restrict  __path ,
2177                                                                                            char * __restrict  __buf ,   2177                                                                                            char * __restrict  __buf ,
2178                                                                                            size_t __len ) ;   2178                                                                                            size_t __len ) ;
2179 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,3))) symlinkat)(char const   *__from ,   2179 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,3))) symlinkat)(char const   *__from ,
2180                                                                                         int __tofd ,   2180                                                                                         int __tofd ,
2181                                                                                         char const   *__to ) ;   2181                                                                                         char const   *__to ) ;
2182 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(2,3))) readlinkat)(int __fd ,   2182 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(2,3))) readlinkat)(int __fd ,
2183                                                                                              char const   * __restrict  __path ,   2183                                                                                              char const   * __restrict  __path ,
2184                                                                                              char * __restrict  __buf ,   2184                                                                                              char * __restrict  __buf ,
2185                                                                                              size_t __len ) ;   2185                                                                                              size_t __len ) ;
2186 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unlink)(char const   *__name ) ;   2186 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unlink)(char const   *__name ) ;
2187 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) unlinkat)(int __fd ,   2187 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) unlinkat)(int __fd ,
2188                                                                                      char const   *__name ,   2188                                                                                      char const   *__name ,
2189                                                                                      int __flag ) ;   2189                                                                                      int __flag ) ;
2190 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rmdir)(char const   *__path ) ;   2190 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rmdir)(char const   *__path ) ;
2191 extern  __attribute__((__nothrow__)) __pid_t tcgetpgrp(int __fd ) ;   2191 extern  __attribute__((__nothrow__)) __pid_t tcgetpgrp(int __fd ) ;
2192 extern  __attribute__((__nothrow__)) int tcsetpgrp(int __fd , __pid_t __pgrp_id ) ;   2192 extern  __attribute__((__nothrow__)) int tcsetpgrp(int __fd , __pid_t __pgrp_id ) ;
2193 extern char *getlogin(void) ;   2193 extern char *getlogin(void) ;
2194 extern int ( __attribute__((__nonnull__(1))) getlogin_r)(char *__name ,   2194 extern int ( __attribute__((__nonnull__(1))) getlogin_r)(char *__name ,
2195                                                          size_t __name_len ) ;   2195                                                          size_t __name_len ) ;
2196 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setlogin)(char const   *__name ) ;   2196 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setlogin)(char const   *__name ) ;
2197 extern char *optarg ;   2197 extern char *optarg ;
2198 extern int optind ;   2198 extern int optind ;
2199 extern int opterr ;   2199 extern int opterr ;
2200 extern int optopt ;   2200 extern int optopt ;
2201 extern  __attribute__((__nothrow__)) int getopt(int ___argc ,   2201 extern  __attribute__((__nothrow__)) int getopt(int ___argc ,
2202                                                 char * const  *___argv ,   2202                                                 char * const  *___argv ,
2203                                                 char const   *__shortopts ) ;   2203                                                 char const   *__shortopts ) ;
2204 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) gethostname)(char *__name ,   2204 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) gethostname)(char *__name ,
2205                                                                                         size_t __len ) ;   2205                                                                                         size_t __len ) ;
2206 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) sethostname)(char const   *__name ,   2206 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) sethostname)(char const   *__name ,
2207                                                                                         size_t __len ) ;   2207                                                                                         size_t __len ) ;
2208 extern  __attribute__((__nothrow__)) int sethostid(long __id ) ;   2208 extern  __attribute__((__nothrow__)) int sethostid(long __id ) ;
2209 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getdomainname)(char *__name ,   2209 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getdomainname)(char *__name ,
2210                                                                                           size_t __len ) ;   2210                                                                                           size_t __len ) ;
2211 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setdomainname)(char const   *__name ,   2211 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setdomainname)(char const   *__name ,
2212                                                                                           size_t __len ) ;   2212                                                                                           size_t __len ) ;
2213 extern  __attribute__((__nothrow__)) int vhangup(void) ;   2213 extern  __attribute__((__nothrow__)) int vhangup(void) ;
2214 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) revoke)(char const   *__file ) ;   2214 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) revoke)(char const   *__file ) ;
2215 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) profil)(unsigned short *__sample_buffer ,   2215 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) profil)(unsigned short *__sample_buffer ,
2216                                                                                    size_t __size ,   2216                                                                                    size_t __size ,
2217                                                                                    size_t __offset ,   2217                                                                                    size_t __offset ,
2218                                                                                    unsigned int __scale ) ;   2218                                                                                    unsigned int __scale ) ;
2219 extern  __attribute__((__nothrow__)) int acct(char const   *__name ) ;   2219 extern  __attribute__((__nothrow__)) int acct(char const   *__name ) ;
2220 extern  __attribute__((__nothrow__)) char *getusershell(void) ;   2220 extern  __attribute__((__nothrow__)) char *getusershell(void) ;
2221 extern  __attribute__((__nothrow__)) void endusershell(void) ;   2221 extern  __attribute__((__nothrow__)) void endusershell(void) ;
2222 extern  __attribute__((__nothrow__)) void setusershell(void) ;   2222 extern  __attribute__((__nothrow__)) void setusershell(void) ;
2223 extern  __attribute__((__nothrow__)) int daemon(int __nochdir , int __noclose ) ;   2223 extern  __attribute__((__nothrow__)) int daemon(int __nochdir , int __noclose ) ;
2224 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chroot)(char const   *__path ) ;   2224 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chroot)(char const   *__path ) ;
2225 extern char *( __attribute__((__nonnull__(1))) getpass)(char const   *__prompt ) ;   2225 extern char *( __attribute__((__nonnull__(1))) getpass)(char const   *__prompt ) ;
2226 extern int fsync(int __fd ) ;   2226 extern int fsync(int __fd ) ;
2227 extern long gethostid(void) ;   2227 extern long gethostid(void) ;
2228 extern  __attribute__((__nothrow__)) void sync(void) ;   2228 extern  __attribute__((__nothrow__)) void sync(void) ;
2229 extern  __attribute__((__nothrow__)) int getpagesize(void)  __attribute__((__const__)) ;   2229 extern  __attribute__((__nothrow__)) int getpagesize(void)  __attribute__((__const__)) ;
2230 extern  __attribute__((__nothrow__)) int getdtablesize(void) ;   2230 extern  __attribute__((__nothrow__)) int getdtablesize(void) ;
2231 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) truncate)(char const   *__file ,   2231 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) truncate)(char const   *__file ,
2232                                                                                      __off64_t __length )  __asm__("truncate64")  ;   2232                                                                                      __off64_t __length )  __asm__("truncate64")  ;
2233 extern  __attribute__((__nothrow__)) int ftruncate(int __fd ,   2233 extern  __attribute__((__nothrow__)) int ftruncate(int __fd ,
2234                                                    __off64_t __length )  __asm__("ftruncate64")  ;   2234                                                    __off64_t __length )  __asm__("ftruncate64")  ;
2235 extern  __attribute__((__nothrow__)) int brk(void *__addr ) ;   2235 extern  __attribute__((__nothrow__)) int brk(void *__addr ) ;
2236 extern  __attribute__((__nothrow__)) void *sbrk(intptr_t __delta ) ;   2236 extern  __attribute__((__nothrow__)) void *sbrk(intptr_t __delta ) ;
2237 extern  __attribute__((__nothrow__)) long syscall(long __sysno  , ...) ;   2237 extern  __attribute__((__nothrow__)) long syscall(long __sysno  , ...) ;
2238 extern int lockf(int __fd , int __cmd , __off64_t __len )  __asm__("lockf64")  ;   2238 extern int lockf(int __fd , int __cmd , __off64_t __len )  __asm__("lockf64")  ;
2239 extern int fdatasync(int __fildes ) ;   2239 extern int fdatasync(int __fildes ) ;
2240 extern char const   *TIFFGetVersion(void) ;   2240 extern char const   *TIFFGetVersion(void) ;
2241 extern TIFFCodec const   *TIFFFindCODEC(uint16  ) ;   2241 extern TIFFCodec const   *TIFFFindCODEC(uint16  ) ;
2242 extern TIFFCodec *TIFFRegisterCODEC(uint16  , char const   * ,   2242 extern TIFFCodec *TIFFRegisterCODEC(uint16  , char const   * ,
2243                                     int (*)(TIFF * , int  ) ) ;   2243                                     int (*)(TIFF * , int  ) ) ;
2244 extern void TIFFUnRegisterCODEC(TIFFCodec * ) ;   2244 extern void TIFFUnRegisterCODEC(TIFFCodec * ) ;
2245 extern int TIFFIsCODECConfigured(uint16  ) ;   2245 extern int TIFFIsCODECConfigured(uint16  ) ;
2246 extern TIFFCodec *TIFFGetConfiguredCODECs(void) ;   2246 extern TIFFCodec *TIFFGetConfiguredCODECs(void) ;
2247 extern tdata_t _TIFFmalloc(tsize_t  ) ;   2247 extern tdata_t _TIFFmalloc(tsize_t  ) ;
2248 extern tdata_t _TIFFrealloc(tdata_t  , tsize_t  ) ;   2248 extern tdata_t _TIFFrealloc(tdata_t  , tsize_t  ) ;
2249 extern void _TIFFmemset(tdata_t  , int  , tsize_t  ) ;   2249 extern void _TIFFmemset(tdata_t  , int  , tsize_t  ) ;
2250 extern void _TIFFmemcpy(tdata_t  , tdata_t const    , tsize_t  ) ;   2250 extern void _TIFFmemcpy(tdata_t  , tdata_t const    , tsize_t  ) ;
2251 extern int _TIFFmemcmp(tdata_t const    , tdata_t const    , tsize_t  ) ;   2251 extern int _TIFFmemcmp(tdata_t const    , tdata_t const    , tsize_t  ) ;
2252 extern void _TIFFfree(tdata_t  ) ;   2252 extern void _TIFFfree(tdata_t  ) ;
2253 extern int TIFFGetTagListCount(TIFF * ) ;   2253 extern int TIFFGetTagListCount(TIFF * ) ;
2254 extern ttag_t TIFFGetTagListEntry(TIFF * , int tag_index ) ;   2254 extern ttag_t TIFFGetTagListEntry(TIFF * , int tag_index ) ;
2255 extern void TIFFMergeFieldInfo(TIFF * , TIFFFieldInfo const   * , int  ) ;   2255 extern void TIFFMergeFieldInfo(TIFF * , TIFFFieldInfo const   * , int  ) ;
2256 extern TIFFFieldInfo const   *TIFFFindFieldInfo(TIFF * , ttag_t  ,   2256 extern TIFFFieldInfo const   *TIFFFindFieldInfo(TIFF * , ttag_t  ,
2257                                                 TIFFDataType  ) ;   2257                                                 TIFFDataType  ) ;
2258 extern TIFFFieldInfo const   *TIFFFindFieldInfoByName(TIFF * , char const   * ,   2258 extern TIFFFieldInfo const   *TIFFFindFieldInfoByName(TIFF * , char const   * ,
2259                                                       TIFFDataType  ) ;   2259                                                       TIFFDataType  ) ;
2260 extern TIFFFieldInfo const   *TIFFFieldWithTag(TIFF * , ttag_t  ) ;   2260 extern TIFFFieldInfo const   *TIFFFieldWithTag(TIFF * , ttag_t  ) ;
2261 extern TIFFFieldInfo const   *TIFFFieldWithName(TIFF * , char const   * ) ;   2261 extern TIFFFieldInfo const   *TIFFFieldWithName(TIFF * , char const   * ) ;
2262 extern TIFFTagMethods *TIFFAccessTagMethods(TIFF * ) ;   2262 extern TIFFTagMethods *TIFFAccessTagMethods(TIFF * ) ;
2263 extern void *TIFFGetClientInfo(TIFF * , char const   * ) ;   2263 extern void *TIFFGetClientInfo(TIFF * , char const   * ) ;
2264 extern void TIFFSetClientInfo(TIFF * , void * , char const   * ) ;   2264 extern void TIFFSetClientInfo(TIFF * , void * , char const   * ) ;
2265 extern void TIFFCleanup(TIFF * ) ;   2265 extern void TIFFCleanup(TIFF * ) ;
2266 extern void TIFFClose(TIFF * ) ;   2266 extern void TIFFClose(TIFF * ) ;
2267 extern int TIFFFlush(TIFF * ) ;   2267 extern int TIFFFlush(TIFF * ) ;
2268 extern int TIFFFlushData(TIFF * ) ;   2268 extern int TIFFFlushData(TIFF * ) ;
2269 extern int TIFFGetField(TIFF * , ttag_t   , ...) ;   2269 extern int TIFFGetField(TIFF * , ttag_t   , ...) ;
2270 extern int TIFFVGetField(TIFF * , ttag_t  , va_list  ) ;   2270 extern int TIFFVGetField(TIFF * , ttag_t  , va_list  ) ;
2271 extern int TIFFGetFieldDefaulted(TIFF * , ttag_t   , ...) ;   2271 extern int TIFFGetFieldDefaulted(TIFF * , ttag_t   , ...) ;
2272 extern int TIFFVGetFieldDefaulted(TIFF * , ttag_t  , va_list  ) ;   2272 extern int TIFFVGetFieldDefaulted(TIFF * , ttag_t  , va_list  ) ;
2273 extern int TIFFReadDirectory(TIFF * ) ;   2273 extern int TIFFReadDirectory(TIFF * ) ;
2274 extern int TIFFReadCustomDirectory(TIFF * , toff_t  , TIFFFieldInfo const   * ,   2274 extern int TIFFReadCustomDirectory(TIFF * , toff_t  , TIFFFieldInfo const   * ,
2275                                    size_t  ) ;   2275                                    size_t  ) ;
2276 extern int TIFFReadEXIFDirectory(TIFF * , toff_t  ) ;   2276 extern int TIFFReadEXIFDirectory(TIFF * , toff_t  ) ;
2277 extern tsize_t TIFFScanlineSize(TIFF * ) ;   2277 extern tsize_t TIFFScanlineSize(TIFF * ) ;
2278 extern tsize_t TIFFRasterScanlineSize(TIFF * ) ;   2278 extern tsize_t TIFFRasterScanlineSize(TIFF * ) ;
2279 extern tsize_t TIFFStripSize(TIFF * ) ;   2279 extern tsize_t TIFFStripSize(TIFF * ) ;
2280 extern tsize_t TIFFRawStripSize(TIFF * , tstrip_t  ) ;   2280 extern tsize_t TIFFRawStripSize(TIFF * , tstrip_t  ) ;
2281 extern tsize_t TIFFVStripSize(TIFF * , uint32  ) ;   2281 extern tsize_t TIFFVStripSize(TIFF * , uint32  ) ;
2282 extern tsize_t TIFFTileRowSize(TIFF * ) ;   2282 extern tsize_t TIFFTileRowSize(TIFF * ) ;
2283 extern tsize_t TIFFTileSize(TIFF * ) ;   2283 extern tsize_t TIFFTileSize(TIFF * ) ;
2284 extern tsize_t TIFFVTileSize(TIFF * , uint32  ) ;   2284 extern tsize_t TIFFVTileSize(TIFF * , uint32  ) ;
2285 extern uint32 TIFFDefaultStripSize(TIFF * , uint32  ) ;   2285 extern uint32 TIFFDefaultStripSize(TIFF * , uint32  ) ;
2286 extern void TIFFDefaultTileSize(TIFF * , uint32 * , uint32 * ) ;   2286 extern void TIFFDefaultTileSize(TIFF * , uint32 * , uint32 * ) ;
2287 extern int TIFFFileno(TIFF * ) ;   2287 extern int TIFFFileno(TIFF * ) ;
2288 extern int TIFFSetFileno(TIFF * , int  ) ;   2288 extern int TIFFSetFileno(TIFF * , int  ) ;
2289 extern thandle_t TIFFClientdata(TIFF * ) ;   2289 extern thandle_t TIFFClientdata(TIFF * ) ;
2290 extern thandle_t TIFFSetClientdata(TIFF * , thandle_t  ) ;   2290 extern thandle_t TIFFSetClientdata(TIFF * , thandle_t  ) ;
2291 extern int TIFFGetMode(TIFF * ) ;   2291 extern int TIFFGetMode(TIFF * ) ;
2292 extern int TIFFSetMode(TIFF * , int  ) ;   2292 extern int TIFFSetMode(TIFF * , int  ) ;
2293 extern int TIFFIsTiled(TIFF * ) ;   2293 extern int TIFFIsTiled(TIFF * ) ;
2294 extern int TIFFIsByteSwapped(TIFF * ) ;   2294 extern int TIFFIsByteSwapped(TIFF * ) ;
2295 extern int TIFFIsUpSampled(TIFF * ) ;   2295 extern int TIFFIsUpSampled(TIFF * ) ;
2296 extern int TIFFIsMSB2LSB(TIFF * ) ;   2296 extern int TIFFIsMSB2LSB(TIFF * ) ;
2297 extern int TIFFIsBigEndian(TIFF * ) ;   2297 extern int TIFFIsBigEndian(TIFF * ) ;
2298 extern TIFFReadWriteProc TIFFGetReadProc(TIFF * ) ;   2298 extern TIFFReadWriteProc TIFFGetReadProc(TIFF * ) ;
2299 extern TIFFReadWriteProc TIFFGetWriteProc(TIFF * ) ;   2299 extern TIFFReadWriteProc TIFFGetWriteProc(TIFF * ) ;
2300 extern TIFFSeekProc TIFFGetSeekProc(TIFF * ) ;   2300 extern TIFFSeekProc TIFFGetSeekProc(TIFF * ) ;
2301 extern TIFFCloseProc TIFFGetCloseProc(TIFF * ) ;   2301 extern TIFFCloseProc TIFFGetCloseProc(TIFF * ) ;
2302 extern TIFFSizeProc TIFFGetSizeProc(TIFF * ) ;   2302 extern TIFFSizeProc TIFFGetSizeProc(TIFF * ) ;
2303 extern TIFFMapFileProc TIFFGetMapFileProc(TIFF * ) ;   2303 extern TIFFMapFileProc TIFFGetMapFileProc(TIFF * ) ;
2304 extern TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF * ) ;   2304 extern TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF * ) ;
2305 extern uint32 TIFFCurrentRow(TIFF * ) ;   2305 extern uint32 TIFFCurrentRow(TIFF * ) ;
2306 extern tdir_t TIFFCurrentDirectory(TIFF * ) ;   2306 extern tdir_t TIFFCurrentDirectory(TIFF * ) ;
2307 extern tdir_t TIFFNumberOfDirectories(TIFF * ) ;   2307 extern tdir_t TIFFNumberOfDirectories(TIFF * ) ;
2308 extern uint32 TIFFCurrentDirOffset(TIFF * ) ;   2308 extern uint32 TIFFCurrentDirOffset(TIFF * ) ;
2309 extern tstrip_t TIFFCurrentStrip(TIFF * ) ;   2309 extern tstrip_t TIFFCurrentStrip(TIFF * ) ;
2310 extern ttile_t TIFFCurrentTile(TIFF * ) ;   2310 extern ttile_t TIFFCurrentTile(TIFF * ) ;
2311 extern int TIFFReadBufferSetup(TIFF * , tdata_t  , tsize_t  ) ;   2311 extern int TIFFReadBufferSetup(TIFF * , tdata_t  , tsize_t  ) ;
2312 extern int TIFFWriteBufferSetup(TIFF * , tdata_t  , tsize_t  ) ;   2312 extern int TIFFWriteBufferSetup(TIFF * , tdata_t  , tsize_t  ) ;
2313 extern int TIFFSetupStrips(TIFF * ) ;   2313 extern int TIFFSetupStrips(TIFF * ) ;
2314 extern int TIFFWriteCheck(TIFF * , int  , char const   * ) ;   2314 extern int TIFFWriteCheck(TIFF * , int  , char const   * ) ;
2315 extern void TIFFFreeDirectory(TIFF * ) ;   2315 extern void TIFFFreeDirectory(TIFF * ) ;
2316 extern int TIFFCreateDirectory(TIFF * ) ;   2316 extern int TIFFCreateDirectory(TIFF * ) ;
2317 extern int TIFFLastDirectory(TIFF * ) ;   2317 extern int TIFFLastDirectory(TIFF * ) ;
2318 extern int TIFFSetDirectory(TIFF * , tdir_t  ) ;   2318 extern int TIFFSetDirectory(TIFF * , tdir_t  ) ;
2319 extern int TIFFSetSubDirectory(TIFF * , uint32  ) ;   2319 extern int TIFFSetSubDirectory(TIFF * , uint32  ) ;
2320 extern int TIFFUnlinkDirectory(TIFF * , tdir_t  ) ;   2320 extern int TIFFUnlinkDirectory(TIFF * , tdir_t  ) ;
2321 extern int TIFFSetField(TIFF * , ttag_t   , ...) ;   2321 extern int TIFFSetField(TIFF * , ttag_t   , ...) ;
2322 extern int TIFFVSetField(TIFF * , ttag_t  , va_list  ) ;   2322 extern int TIFFVSetField(TIFF * , ttag_t  , va_list  ) ;
2323 extern int TIFFWriteDirectory(TIFF * ) ;   2323 extern int TIFFWriteDirectory(TIFF * ) ;
2324 extern int TIFFCheckpointDirectory(TIFF * ) ;   2324 extern int TIFFCheckpointDirectory(TIFF * ) ;
2325 extern int TIFFRewriteDirectory(TIFF * ) ;   2325 extern int TIFFRewriteDirectory(TIFF * ) ;
2326 extern int TIFFReassignTagToIgnore(enum TIFFIgnoreSense  , int  ) ;   2326 extern int TIFFReassignTagToIgnore(enum TIFFIgnoreSense  , int  ) ;
2327 extern void TIFFPrintDirectory(TIFF * , FILE * , long  ) ;   2327 extern void TIFFPrintDirectory(TIFF * , FILE * , long  ) ;
2328 extern int TIFFReadScanline(TIFF * , tdata_t  , uint32  , tsample_t  ) ;   2328 extern int TIFFReadScanline(TIFF * , tdata_t  , uint32  , tsample_t  ) ;
2329 extern int TIFFWriteScanline(TIFF * , tdata_t  , uint32  , tsample_t  ) ;   2329 extern int TIFFWriteScanline(TIFF * , tdata_t  , uint32  , tsample_t  ) ;
2330 extern int TIFFReadRGBAImage(TIFF * , uint32  , uint32  , uint32 * , int  ) ;   2330 extern int TIFFReadRGBAImage(TIFF * , uint32  , uint32  , uint32 * , int  ) ;
2331 extern int TIFFReadRGBAImageOriented(TIFF * , uint32  , uint32  , uint32 * ,   2331 extern int TIFFReadRGBAImageOriented(TIFF * , uint32  , uint32  , uint32 * ,
2332                                      int  , int  ) ;   2332                                      int  , int  ) ;
2333 extern int TIFFReadRGBAStrip(TIFF * , tstrip_t  , uint32 * ) ;   2333 extern int TIFFReadRGBAStrip(TIFF * , tstrip_t  , uint32 * ) ;
2334 extern int TIFFReadRGBATile(TIFF * , uint32  , uint32  , uint32 * ) ;   2334 extern int TIFFReadRGBATile(TIFF * , uint32  , uint32  , uint32 * ) ;
2335 extern int TIFFRGBAImageOK(TIFF * , char * ) ;   2335 extern int TIFFRGBAImageOK(TIFF * , char * ) ;
2336 extern int TIFFRGBAImageBegin(TIFFRGBAImage * , TIFF * , int  , char * ) ;   2336 extern int TIFFRGBAImageBegin(TIFFRGBAImage * , TIFF * , int  , char * ) ;
2337 extern int TIFFRGBAImageGet(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;   2337 extern int TIFFRGBAImageGet(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;
2338 extern void TIFFRGBAImageEnd(TIFFRGBAImage * ) ;   2338 extern void TIFFRGBAImageEnd(TIFFRGBAImage * ) ;
2339 extern TIFF *TIFFOpen(char const   * , char const   * ) ;   2339 extern TIFF *TIFFOpen(char const   * , char const   * ) ;
2340 extern TIFF *TIFFFdOpen(int  , char const   * , char const   * ) ;   2340 extern TIFF *TIFFFdOpen(int  , char const   * , char const   * ) ;
2341 extern TIFF *TIFFClientOpen(char const   * , char const   * , thandle_t  ,   2341 extern TIFF *TIFFClientOpen(char const   * , char const   * , thandle_t  ,
2342                             tsize_t (*)(thandle_t  , tdata_t  , tsize_t  ) ,   2342                             tsize_t (*)(thandle_t  , tdata_t  , tsize_t  ) ,
2343                             tsize_t (*)(thandle_t  , tdata_t  , tsize_t  ) ,   2343                             tsize_t (*)(thandle_t  , tdata_t  , tsize_t  ) ,
2344                             toff_t (*)(thandle_t  , toff_t  , int  ) ,   2344                             toff_t (*)(thandle_t  , toff_t  , int  ) ,
2345                             int (*)(thandle_t  ) , toff_t (*)(thandle_t  ) ,   2345                             int (*)(thandle_t  ) , toff_t (*)(thandle_t  ) ,
2346                             int (*)(thandle_t  , tdata_t * , toff_t * ) ,   2346                             int (*)(thandle_t  , tdata_t * , toff_t * ) ,
2347                             void (*)(thandle_t  , tdata_t  , toff_t  ) ) ;   2347                             void (*)(thandle_t  , tdata_t  , toff_t  ) ) ;
2348 extern char const   *TIFFFileName(TIFF * ) ;   2348 extern char const   *TIFFFileName(TIFF * ) ;
2349 extern char const   *TIFFSetFileName(TIFF * , char const   * ) ;   2349 extern char const   *TIFFSetFileName(TIFF * , char const   * ) ;
2350 extern void TIFFError(char const   * , char const   *  , ...) ;   2350 extern void TIFFError(char const   * , char const   *  , ...) ;
2351 extern void TIFFWarning(char const   * , char const   *  , ...) ;   2351 extern void TIFFWarning(char const   * , char const   *  , ...) ;
2352 extern TIFFErrorHandler TIFFSetErrorHandler(void (*)(char const   * ,   2352 extern TIFFErrorHandler TIFFSetErrorHandler(void (*)(char const   * ,
2353                                                      char const   * , va_list  ) ) ;   2353                                                      char const   * , va_list  ) ) ;
2354 extern TIFFErrorHandler TIFFSetWarningHandler(void (*)(char const   * ,   2354 extern TIFFErrorHandler TIFFSetWarningHandler(void (*)(char const   * ,
2355                                                        char const   * ,   2355                                                        char const   * ,
2356                                                        va_list  ) ) ;   2356                                                        va_list  ) ) ;
2357 extern TIFFExtendProc TIFFSetTagExtender(void (*)(TIFF * ) ) ;   2357 extern TIFFExtendProc TIFFSetTagExtender(void (*)(TIFF * ) ) ;
2358 extern ttile_t TIFFComputeTile(TIFF * , uint32  , uint32  , uint32  ,   2358 extern ttile_t TIFFComputeTile(TIFF * , uint32  , uint32  , uint32  ,
2359                                tsample_t  ) ;   2359                                tsample_t  ) ;
2360 extern int TIFFCheckTile(TIFF * , uint32  , uint32  , uint32  , tsample_t  ) ;   2360 extern int TIFFCheckTile(TIFF * , uint32  , uint32  , uint32  , tsample_t  ) ;
2361 extern ttile_t TIFFNumberOfTiles(TIFF * ) ;   2361 extern ttile_t TIFFNumberOfTiles(TIFF * ) ;
2362 extern tsize_t TIFFReadTile(TIFF * , tdata_t  , uint32  , uint32  , uint32  ,   2362 extern tsize_t TIFFReadTile(TIFF * , tdata_t  , uint32  , uint32  , uint32  ,
2363                             tsample_t  ) ;   2363                             tsample_t  ) ;
2364 extern tsize_t TIFFWriteTile(TIFF * , tdata_t  , uint32  , uint32  , uint32  ,   2364 extern tsize_t TIFFWriteTile(TIFF * , tdata_t  , uint32  , uint32  , uint32  ,
2365                              tsample_t  ) ;   2365                              tsample_t  ) ;
2366 extern tstrip_t TIFFComputeStrip(TIFF * , uint32  , tsample_t  ) ;   2366 extern tstrip_t TIFFComputeStrip(TIFF * , uint32  , tsample_t  ) ;
2367 extern tstrip_t TIFFNumberOfStrips(TIFF * ) ;   2367 extern tstrip_t TIFFNumberOfStrips(TIFF * ) ;
2368 extern tsize_t TIFFReadEncodedStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;   2368 extern tsize_t TIFFReadEncodedStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;
2369 extern tsize_t TIFFReadRawStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;   2369 extern tsize_t TIFFReadRawStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;
2370 extern tsize_t TIFFReadEncodedTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;   2370 extern tsize_t TIFFReadEncodedTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;
2371 extern tsize_t TIFFReadRawTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;   2371 extern tsize_t TIFFReadRawTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;
2372 extern tsize_t TIFFWriteEncodedStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;   2372 extern tsize_t TIFFWriteEncodedStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;
2373 extern tsize_t TIFFWriteRawStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;   2373 extern tsize_t TIFFWriteRawStrip(TIFF * , tstrip_t  , tdata_t  , tsize_t  ) ;
2374 extern tsize_t TIFFWriteEncodedTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;   2374 extern tsize_t TIFFWriteEncodedTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;
2375 extern tsize_t TIFFWriteRawTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;   2375 extern tsize_t TIFFWriteRawTile(TIFF * , ttile_t  , tdata_t  , tsize_t  ) ;
2376 extern int TIFFDataWidth(TIFFDataType  ) ;   2376 extern int TIFFDataWidth(TIFFDataType  ) ;
2377 extern void TIFFSetWriteOffset(TIFF * , toff_t  ) ;   2377 extern void TIFFSetWriteOffset(TIFF * , toff_t  ) ;
2378 extern void TIFFSwabShort(uint16 * ) ;   2378 extern void TIFFSwabShort(uint16 * ) ;
2379 extern void TIFFSwabLong(uint32 * ) ;   2379 extern void TIFFSwabLong(uint32 * ) ;
2380 extern void TIFFSwabDouble(double * ) ;   2380 extern void TIFFSwabDouble(double * ) ;
2381 extern void TIFFSwabArrayOfShort(uint16 * , unsigned long  ) ;   2381 extern void TIFFSwabArrayOfShort(uint16 * , unsigned long  ) ;
2382 extern void TIFFSwabArrayOfTriples(uint8 * , unsigned long  ) ;   2382 extern void TIFFSwabArrayOfTriples(uint8 * , unsigned long  ) ;
2383 extern void TIFFSwabArrayOfLong(uint32 * , unsigned long  ) ;   2383 extern void TIFFSwabArrayOfLong(uint32 * , unsigned long  ) ;
2384 extern void TIFFSwabArrayOfDouble(double * , unsigned long  ) ;   2384 extern void TIFFSwabArrayOfDouble(double * , unsigned long  ) ;
2385 extern void TIFFReverseBits(unsigned char * , unsigned long  ) ;   2385 extern void TIFFReverseBits(unsigned char * , unsigned long  ) ;
2386 extern unsigned char const   *TIFFGetBitRevTable(int  ) ;   2386 extern unsigned char const   *TIFFGetBitRevTable(int  ) ;
2387 extern double LogL16toY(int  ) ;   2387 extern double LogL16toY(int  ) ;
2388 extern double LogL10toY(int  ) ;   2388 extern double LogL10toY(int  ) ;
2389 extern void XYZtoRGB24(float * , uint8 * ) ;   2389 extern void XYZtoRGB24(float * , uint8 * ) ;
2390 extern int uv_decode(double * , double * , int  ) ;   2390 extern int uv_decode(double * , double * , int  ) ;
2391 extern void LogLuv24toXYZ(uint32  , float * ) ;   2391 extern void LogLuv24toXYZ(uint32  , float * ) ;
2392 extern void LogLuv32toXYZ(uint32  , float * ) ;   2392 extern void LogLuv32toXYZ(uint32  , float * ) ;
2393 extern int LogL16fromY(double  , int  ) ;   2393 extern int LogL16fromY(double  , int  ) ;
2394 extern int LogL10fromY(double  , int  ) ;   2394 extern int LogL10fromY(double  , int  ) ;
2395 extern int uv_encode(double  , double  , int  ) ;   2395 extern int uv_encode(double  , double  , int  ) ;
2396 extern uint32 LogLuv24fromXYZ(float * , int  ) ;   2396 extern uint32 LogLuv24fromXYZ(float * , int  ) ;
2397 extern uint32 LogLuv32fromXYZ(float * , int  ) ;   2397 extern uint32 LogLuv32fromXYZ(float * , int  ) ;
2398 extern int TIFFCIELabToRGBInit(TIFFCIELabToRGB * , TIFFDisplay * , float * ) ;   2398 extern int TIFFCIELabToRGBInit(TIFFCIELabToRGB * , TIFFDisplay * , float * ) ;
2399 extern void TIFFCIELabToXYZ(TIFFCIELabToRGB * , uint32  , int32  , int32  ,   2399 extern void TIFFCIELabToXYZ(TIFFCIELabToRGB * , uint32  , int32  , int32  ,
2400                             float * , float * , float * ) ;   2400                             float * , float * , float * ) ;
2401 extern void TIFFXYZToRGB(TIFFCIELabToRGB * , float  , float  , float  ,   2401 extern void TIFFXYZToRGB(TIFFCIELabToRGB * , float  , float  , float  ,
2402                          uint32 * , uint32 * , uint32 * ) ;   2402                          uint32 * , uint32 * , uint32 * ) ;
2403 extern int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB * , float * , float * ) ;   2403 extern int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB * , float * , float * ) ;
2404 extern void TIFFYCbCrtoRGB(TIFFYCbCrToRGB * , uint32  , int32  , int32  ,   2404 extern void TIFFYCbCrtoRGB(TIFFYCbCrToRGB * , uint32  , int32  , int32  ,
2405                            uint32 * , uint32 * , uint32 * ) ;   2405                            uint32 * , uint32 * , uint32 * ) ;
2406 static int outtiled  =    -1;   2406 static int outtiled  =    -1;
2407 static uint32 tilewidth  ;   2407 static uint32 tilewidth  ;
2408 static uint32 tilelength  ;   2408 static uint32 tilelength  ;
2409 static uint16 config  ;   2409 static uint16 config  ;
2410 static uint16 compression  ;   2410 static uint16 compression  ;
2411 static uint16 predictor  ;   2411 static uint16 predictor  ;
2412 static uint16 fillorder  ;   2412 static uint16 fillorder  ;
2413 static uint16 orientation  ;   2413 static uint16 orientation  ;
2414 static uint32 rowsperstrip  ;   2414 static uint32 rowsperstrip  ;
2415 static uint32 g3opts  ;   2415 static uint32 g3opts  ;
2416 static int ignore  =    0;   2416 static int ignore  =    0;
2417 static uint32 defg3opts  =    (uint32 )-1;   2417 static uint32 defg3opts  =    (uint32 )-1;
2418 static int quality  =    75;   2418 static int quality  =    75;
2419 static int jpegcolormode  =    1;   2419 static int jpegcolormode  =    1;
2420 static uint16 defcompression  =    (uint16 )-1;   2420 static uint16 defcompression  =    (uint16 )-1;
2421 static uint16 defpredictor  =    (uint16 )-1;   2421 static uint16 defpredictor  =    (uint16 )-1;
2422 static int tiffcp(TIFF *in , TIFF *out ) ;   2422 static int tiffcp(TIFF *in , TIFF *out ) ;
2423 static int processCompressOptions(char *opt ) ;   2423 static int processCompressOptions(char *opt ) ;
2424 static void usage(void) ;   2424 static void usage(void) ;
2425 static char comma  =    (char )',';   2425 static char comma  =    (char )',';
2426 static TIFF *bias  =    (TIFF *)((void *)0);   2426 static TIFF *bias  =    (TIFF *)((void *)0);
2427 static int pageNum  =    0;   2427 static int pageNum  =    0;
2428 static int nextSrcImage(TIFF *tif , char **imageSpec )   2428 static int nextSrcImage(TIFF *tif , char **imageSpec )
2429 {   2429 {
2430   char *start ;   2430   char *start ;
2431   tdir_t nextImage ;   2431   tdir_t nextImage ;
2432   long tmp ;   2432   long tmp ;
2433   char const   *tmp___0 ;   2433   char const   *tmp___0 ;
2434   int tmp___1 ;   2434   int tmp___1 ;
2435   char const   *tmp___2 ;   2435   char const   *tmp___2 ;
2436     2436  
2437   {   2437   {
2438   if ((int )*(*imageSpec) == (int )comma) {   2438   if ((int )*(*imageSpec) == (int )comma) {
2439     start = *imageSpec + 1;   2439     start = *imageSpec + 1;
2440     tmp = strtol((char const   */* __restrict  */)start,   2440     tmp = strtol((char const   */* __restrict  */)start,
2441                  (char **/* __restrict  */)imageSpec, 0);   2441                  (char **/* __restrict  */)imageSpec, 0);
2442     nextImage = (tdir_t )tmp;   2442     nextImage = (tdir_t )tmp;
2443     if ((unsigned int )start == (unsigned int )*imageSpec) {   2443     if ((unsigned int )start == (unsigned int )*imageSpec) {
2444       nextImage = TIFFCurrentDirectory(tif);   2444       nextImage = TIFFCurrentDirectory(tif);
2445     } else {   2445     } else {
2446     2446  
2447     }   2447     }
2448     if (*(*imageSpec)) {   2448     if (*(*imageSpec)) {
2449       if ((int )*(*imageSpec) == (int )comma) {   2449       if ((int )*(*imageSpec) == (int )comma) {
2450         if ((int )*(*imageSpec + 1) == 0) {   2450         if ((int )*(*imageSpec + 1) == 0) {
2451           *imageSpec = (char *)((void *)0);   2451           *imageSpec = (char *)((void *)0);
2452         } else {   2452         } else {
2453     2453  
2454         }   2454         }
2455       } else {   2455       } else {
2456         tmp___0 = TIFFFileName(tif);   2456         tmp___0 = TIFFFileName(tif);
2457         fprintf((FILE */* __restrict  */)stderr,   2457         fprintf((FILE */* __restrict  */)stderr,
2458                 (char const   */* __restrict  */)"Expected a %c separated image # list after %s\n",   2458                 (char const   */* __restrict  */)"Expected a %c separated image # list after %s\n",
2459                 (int )comma, tmp___0);   2459                 (int )comma, tmp___0);
2460         exit(-4);   2460         exit(-4);
2461       }   2461       }
2462     } else {   2462     } else {
2463     2463  
2464     }   2464     }
2465     tmp___1 = TIFFSetDirectory(tif, nextImage);   2465     tmp___1 = TIFFSetDirectory(tif, nextImage);
2466     if (tmp___1) {   2466     if (tmp___1) {
2467       return (1);   2467       return (1);
2468     } else {   2468     } else {
2469     2469  
2470     }   2470     }
2471     tmp___2 = TIFFFileName(tif);   2471     tmp___2 = TIFFFileName(tif);
2472     fprintf((FILE */* __restrict  */)stderr,   2472     fprintf((FILE */* __restrict  */)stderr,
2473             (char const   */* __restrict  */)"%s%c%d not found!\n", tmp___2,   2473             (char const   */* __restrict  */)"%s%c%d not found!\n", tmp___2,
2474             (int )comma, (int )nextImage);   2474             (int )comma, (int )nextImage);
2475   } else {   2475   } else {
2476     2476  
2477   }   2477   }
2478   return (0);   2478   return (0);
2479 }   2479 }
2480 }   2480 }
2481 static TIFF *openSrcImage(char **imageSpec )   2481 static TIFF *openSrcImage(char **imageSpec )
2482 {   2482 {
2483   TIFF *tif ;   2483   TIFF *tif ;
2484   char *fn ;   2484   char *fn ;
2485   void *tmp ;   2485   void *tmp ;
2486   char *tmp___0 ;   2486   char *tmp___0 ;
2487   int tmp___1 ;   2487   int tmp___1 ;
2488     2488  
2489   {   2489   {
2490   fn = *imageSpec;   2490   fn = *imageSpec;
2491   tmp___0 = __builtin_strchr(fn, (int )comma);   2491   tmp___0 = __builtin_strchr(fn, (int )comma);
2492   *imageSpec = tmp___0;   2492   *imageSpec = tmp___0;
2493   if (*imageSpec) {   2493   if (*imageSpec) {
2494     *(*imageSpec) = (char )'\000';   2494     *(*imageSpec) = (char )'\000';
2495     tif = TIFFOpen((char const   *)fn, "r");   2495     tif = TIFFOpen((char const   *)fn, "r");
2496     if (! *(*imageSpec + 1)) {   2496     if (! *(*imageSpec + 1)) {
2497       *imageSpec = (char *)((void *)0);   2497       *imageSpec = (char *)((void *)0);
2498       return (tif);   2498       return (tif);
2499     } else {   2499     } else {
2500     2500  
2501     }   2501     }
2502     if (tif) {   2502     if (tif) {
2503       *(*imageSpec) = comma;   2503       *(*imageSpec) = comma;
2504       tmp___1 = nextSrcImage(tif, imageSpec);   2504       tmp___1 = nextSrcImage(tif, imageSpec);
2505       if (tmp___1) {   2505       if (tmp___1) {
2506     2506  
2507       } else {   2507       } else {
2508         TIFFClose(tif);   2508         TIFFClose(tif);
2509         tif = (TIFF *)((void *)0);   2509         tif = (TIFF *)((void *)0);
2510       }   2510       }
2511     } else {   2511     } else {
2512     2512  
2513     }   2513     }
2514   } else {   2514   } else {
2515     tif = TIFFOpen((char const   *)fn, "r");   2515     tif = TIFFOpen((char const   *)fn, "r");
2516   }   2516   }
2517   return (tif);   2517   return (tif);
2518 }   2518 }
2519 }   2519 }
2520 int main(int argc , char **argv )   2520 int main(int argc , char **argv )
2521 {   2521 {
2522   uint16 defconfig ;   2522   uint16 defconfig ;
2523   uint16 deffillorder ;   2523   uint16 deffillorder ;
2524   uint32 deftilewidth ;   2524   uint32 deftilewidth ;
2525   uint32 deftilelength ;   2525   uint32 deftilelength ;
2526   uint32 defrowsperstrip ;   2526   uint32 defrowsperstrip ;
2527   uint32 diroff ;   2527   uint32 diroff ;
2528   TIFF *in ;   2528   TIFF *in ;
2529   TIFF *out ;   2529   TIFF *out ;
2530   char mode[10] ;   2530   char mode[10] ;
2531   char *mp ;   2531   char *mp ;
2532   int c ;   2532   int c ;
2533   char *tmp ;   2533   char *tmp ;
2534   uint16 samples ;   2534   uint16 samples ;
2535   char **biasFn ;   2535   char **biasFn ;
2536   int tmp___0 ;   2536   int tmp___0 ;
2537   int tmp___1 ;   2537   int tmp___1 ;
2538   size_t __s1_len ;   2538   size_t __s1_len ;
2539   size_t __s2_len ;   2539   size_t __s2_len ;
2540   int tmp___2 ;   2540   int tmp___2 ;
2541   int tmp___3 ;   2541   int tmp___3 ;
2542   int tmp___4 ;   2542   int tmp___4 ;
2543   unsigned char const   *__s2 ;   2543   unsigned char const   *__s2 ;
2544   register int __result ;   2544   register int __result ;
2545   int tmp___5 ;   2545   int tmp___5 ;
2546   unsigned char const   *__s1 ;   2546   unsigned char const   *__s1 ;
2547   register int __result___0 ;   2547   register int __result___0 ;
2548   int tmp___6 ;   2548   int tmp___6 ;
2549   int tmp___7 ;   2549   int tmp___7 ;
2550   int tmp___8 ;   2550   int tmp___8 ;
2551   size_t __s1_len___0 ;   2551   size_t __s1_len___0 ;
2552   size_t __s2_len___0 ;   2552   size_t __s2_len___0 ;
2553   int tmp___9 ;   2553   int tmp___9 ;
2554   int tmp___10 ;   2554   int tmp___10 ;
2555   int tmp___11 ;   2555   int tmp___11 ;
2556   unsigned char const   *__s2___0 ;   2556   unsigned char const   *__s2___0 ;
2557   register int __result___1 ;   2557   register int __result___1 ;
2558   int tmp___12 ;   2558   int tmp___12 ;
2559   unsigned char const   *__s1___0 ;   2559   unsigned char const   *__s1___0 ;
2560   register int __result___2 ;   2560   register int __result___2 ;
2561   int tmp___13 ;   2561   int tmp___13 ;
2562   int tmp___14 ;   2562   int tmp___14 ;
2563   int tmp___15 ;   2563   int tmp___15 ;
2564   int tmp___16 ;   2564   int tmp___16 ;
2565   unsigned long tmp___17 ;   2565   unsigned long tmp___17 ;
2566   size_t __s1_len___1 ;   2566   size_t __s1_len___1 ;
2567   size_t __s2_len___1 ;   2567   size_t __s2_len___1 ;
2568   int tmp___18 ;   2568   int tmp___18 ;
2569   int tmp___19 ;   2569   int tmp___19 ;
2570   int tmp___20 ;   2570   int tmp___20 ;
2571   unsigned char const   *__s2___1 ;   2571   unsigned char const   *__s2___1 ;
2572   register int __result___3 ;   2572   register int __result___3 ;
2573   int tmp___21 ;   2573   int tmp___21 ;
2574   unsigned char const   *__s1___1 ;   2574   unsigned char const   *__s1___1 ;
2575   register int __result___4 ;   2575   register int __result___4 ;
2576   int tmp___22 ;   2576   int tmp___22 ;
2577   int tmp___23 ;   2577   int tmp___23 ;
2578   int tmp___24 ;   2578   int tmp___24 ;
2579   size_t __s1_len___2 ;   2579   size_t __s1_len___2 ;
2580   size_t __s2_len___2 ;   2580   size_t __s2_len___2 ;
2581   int tmp___25 ;   2581   int tmp___25 ;
2582   int tmp___26 ;   2582   int tmp___26 ;
2583   int tmp___27 ;   2583   int tmp___27 ;
2584   unsigned char const   *__s2___2 ;   2584   unsigned char const   *__s2___2 ;
2585   register int __result___5 ;   2585   register int __result___5 ;
2586   int tmp___28 ;   2586   int tmp___28 ;
2587   unsigned char const   *__s1___2 ;   2587   unsigned char const   *__s1___2 ;
2588   register int __result___6 ;   2588   register int __result___6 ;
2589   int tmp___29 ;   2589   int tmp___29 ;
2590   int tmp___30 ;   2590   int tmp___30 ;
2591   int tmp___31 ;   2591   int tmp___31 ;
2592   long tmp___32 ;   2592   long tmp___32 ;
2593   int tmp___33 ;   2593   int tmp___33 ;
2594   char *tmp___34 ;   2594   char *tmp___34 ;
2595   char *tmp___35 ;   2595   char *tmp___35 ;
2596   char *tmp___36 ;   2596   char *tmp___36 ;
2597   char *tmp___37 ;   2597   char *tmp___37 ;
2598   char *imageCursor ;   2598   char *imageCursor ;
2599   char const   *tmp___38 ;   2599   char const   *tmp___38 ;
2600   int tmp___39 ;   2600   int tmp___39 ;
2601   int tmp___40 ;   2601   int tmp___40 ;
2602   int tmp___41 ;   2602   int tmp___41 ;
2603   int tmp___42 ;   2603   int tmp___42 ;
2604   int tmp___43 ;   2604   int tmp___43 ;
2605     2605  
2606   {   2606   {
2607   defconfig = (uint16 )-1;   2607   defconfig = (uint16 )-1;
2608   deffillorder = (uint16 )0;   2608   deffillorder = (uint16 )0;
2609   deftilewidth = (uint32 )-1;   2609   deftilewidth = (uint32 )-1;
2610   deftilelength = (uint32 )-1;   2610   deftilelength = (uint32 )-1;
2611   defrowsperstrip = (uint32 )0;   2611   defrowsperstrip = (uint32 )0;
2612   diroff = (uint32 )0;   2612   diroff = (uint32 )0;
2613   mp = mode;   2613   mp = mode;
2614   tmp = mp;   2614   tmp = mp;
2615   mp ++;   2615   mp ++;
2616   *tmp = (char )'w';   2616   *tmp = (char )'w';
2617   *mp = (char )'\000';   2617   *mp = (char )'\000';
2618   while (1) {   2618   while (1) {
2619     c = getopt(argc, (char * const  *)argv, ",:b:c:f:l:o:z:p:r:w:aistBLMC");   2619     c = getopt(argc, (char * const  *)argv, ",:b:c:f:l:o:z:p:r:w:aistBLMC");
2620     if (c != -1) {   2620     if (c != -1) {
2621     2621  
2622     } else {   2622     } else {
2623       break;   2623       break;
2624     }   2624     }
2625     switch (c) {   2625     switch (c) {
2626     case 44:   2626     case 44:
2627     if ((int )*(optarg + 0) != 61) {   2627     if ((int )*(optarg + 0) != 61) {
2628       usage();   2628       usage();
2629     } else {   2629     } else {
2630     2630  
2631     }   2631     }
2632     comma = *(optarg + 1);   2632     comma = *(optarg + 1);
2633     break;   2633     break;
2634     case 98:   2634     case 98:
2635     if (bias) {   2635     if (bias) {
2636       fputs((char const   */* __restrict  */)"Only 1 bias image may be specified\n",   2636       fputs((char const   */* __restrict  */)"Only 1 bias image may be specified\n",
2637             (FILE */* __restrict  */)stderr);   2637             (FILE */* __restrict  */)stderr);
2638       exit(-2);   2638       exit(-2);
2639     } else {   2639     } else {
2640     2640  
2641     }   2641     }
2642     samples = (uint16 )-1;   2642     samples = (uint16 )-1;
2643     biasFn = & optarg;   2643     biasFn = & optarg;
2644     bias = openSrcImage(biasFn);   2644     bias = openSrcImage(biasFn);
2645     if (! bias) {   2645     if (! bias) {
2646       exit(-5);   2646       exit(-5);
2647     } else {   2647     } else {
2648     2648  
2649     }   2649     }
2650     tmp___0 = TIFFIsTiled(bias);   2650     tmp___0 = TIFFIsTiled(bias);
2651     if (tmp___0) {   2651     if (tmp___0) {
2652       fputs((char const   */* __restrict  */)"Bias image must be organized in strips\n",   2652       fputs((char const   */* __restrict  */)"Bias image must be organized in strips\n",
2653             (FILE */* __restrict  */)stderr);   2653             (FILE */* __restrict  */)stderr);
2654       exit(-7);   2654       exit(-7);
2655     } else {   2655     } else {
2656     2656  
2657     }   2657     }
2658     TIFFGetField(bias, (ttag_t )277, & samples);   2658     TIFFGetField(bias, (ttag_t )277, & samples);
2659     if ((int )samples != 1) {   2659     if ((int )samples != 1) {
2660       fputs((char const   */* __restrict  */)"Bias image must be monochrome\n",   2660       fputs((char const   */* __restrict  */)"Bias image must be monochrome\n",
2661             (FILE */* __restrict  */)stderr);   2661             (FILE */* __restrict  */)stderr);
2662       exit(-7);   2662       exit(-7);
2663     } else {   2663     } else {
2664     2664  
2665     }   2665     }
2666     break;   2666     break;
2667     case 97:   2667     case 97:
2668     mode[0] = (char )'a';   2668     mode[0] = (char )'a';
2669     break;   2669     break;
2670     case 99:   2670     case 99:
2671     tmp___1 = processCompressOptions(optarg);   2671     tmp___1 = processCompressOptions(optarg);
2672     if (tmp___1) {   2672     if (tmp___1) {
2673     2673  
2674     } else {   2674     } else {
2675       usage();   2675       usage();
2676     }   2676     }
2677     break;   2677     break;
2678     case 102:   2678     case 102:
2679     if (0) {   2679     if (0) {
2680       __s1_len___0 = strlen((char const   *)optarg);   2680       __s1_len___0 = strlen((char const   *)optarg);
2681       __s2_len___0 = strlen("lsb2msb");   2681       __s2_len___0 = strlen("lsb2msb");
2682       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2682       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2683         goto _L___2;   2683         goto _L___2;
2684       } else   2684       } else
2685       if (__s1_len___0 >= 4U) {   2685       if (__s1_len___0 >= 4U) {
2686         _L___2: /* CIL Label */   2686         _L___2: /* CIL Label */
2687         if (! ((size_t )((void const   *)("lsb2msb" + 1)) - (size_t )((void const   *)"lsb2msb") == 1U)) {   2687         if (! ((size_t )((void const   *)("lsb2msb" + 1)) - (size_t )((void const   *)"lsb2msb") == 1U)) {
2688           tmp___15 = 1;   2688           tmp___15 = 1;
2689         } else   2689         } else
2690         if (__s2_len___0 >= 4U) {   2690         if (__s2_len___0 >= 4U) {
2691           tmp___15 = 1;   2691           tmp___15 = 1;
2692         } else {   2692         } else {
2693           tmp___15 = 0;   2693           tmp___15 = 0;
2694         }   2694         }
2695       } else {   2695       } else {
2696         tmp___15 = 0;   2696         tmp___15 = 0;
2697       }   2697       }
2698       if (tmp___15) {   2698       if (tmp___15) {
2699         tmp___10 = __builtin_strcmp((char const   *)optarg, "lsb2msb");   2699         tmp___10 = __builtin_strcmp((char const   *)optarg, "lsb2msb");
2700         tmp___14 = tmp___10;   2700         tmp___14 = tmp___10;
2701       } else {   2701       } else {
2702         tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");   2702         tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");
2703         tmp___14 = tmp___13;   2703         tmp___14 = tmp___13;
2704       }   2704       }
2705     } else {   2705     } else {
2706       tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");   2706       tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");
2707       tmp___14 = tmp___13;   2707       tmp___14 = tmp___13;
2708     }   2708     }
2709     if (tmp___14 == 0) {   2709     if (tmp___14 == 0) {
2710       deffillorder = (uint16 )2;   2710       deffillorder = (uint16 )2;
2711     } else {   2711     } else {
2712       if (0) {   2712       if (0) {
2713         __s1_len = strlen((char const   *)optarg);   2713         __s1_len = strlen((char const   *)optarg);
2714         __s2_len = strlen("msb2lsb");   2714         __s2_len = strlen("msb2lsb");
2715         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2715         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2716           goto _L___0;   2716           goto _L___0;
2717         } else   2717         } else
2718         if (__s1_len >= 4U) {   2718         if (__s1_len >= 4U) {
2719           _L___0: /* CIL Label */   2719           _L___0: /* CIL Label */
2720           if (! ((size_t )((void const   *)("msb2lsb" + 1)) - (size_t )((void const   *)"msb2lsb") == 1U)) {   2720           if (! ((size_t )((void const   *)("msb2lsb" + 1)) - (size_t )((void const   *)"msb2lsb") == 1U)) {
2721             tmp___8 = 1;   2721             tmp___8 = 1;
2722           } else   2722           } else
2723           if (__s2_len >= 4U) {   2723           if (__s2_len >= 4U) {
2724             tmp___8 = 1;   2724             tmp___8 = 1;
2725           } else {   2725           } else {
2726             tmp___8 = 0;   2726             tmp___8 = 0;
2727           }   2727           }
2728         } else {   2728         } else {
2729           tmp___8 = 0;   2729           tmp___8 = 0;
2730         }   2730         }
2731         if (tmp___8) {   2731         if (tmp___8) {
2732           tmp___3 = __builtin_strcmp((char const   *)optarg, "msb2lsb");   2732           tmp___3 = __builtin_strcmp((char const   *)optarg, "msb2lsb");
2733           tmp___7 = tmp___3;   2733           tmp___7 = tmp___3;
2734         } else {   2734         } else {
2735           tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");   2735           tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");
2736           tmp___7 = tmp___6;   2736           tmp___7 = tmp___6;
2737         }   2737         }
2738       } else {   2738       } else {
2739         tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");   2739         tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");
2740         tmp___7 = tmp___6;   2740         tmp___7 = tmp___6;
2741       }   2741       }
2742       if (tmp___7 == 0) {   2742       if (tmp___7 == 0) {
2743         deffillorder = (uint16 )1;   2743         deffillorder = (uint16 )1;
2744       } else {   2744       } else {
2745         usage();   2745         usage();
2746       }   2746       }
2747     }   2747     }
2748     break;   2748     break;
2749     case 105:   2749     case 105:
2750     ignore = 1;   2750     ignore = 1;
2751     break;   2751     break;
2752     case 108:   2752     case 108:
2753     outtiled = 1;   2753     outtiled = 1;
2754     tmp___16 = atoi((char const   *)optarg);   2754     tmp___16 = atoi((char const   *)optarg);
2755     deftilelength = (uint32 )tmp___16;   2755     deftilelength = (uint32 )tmp___16;
2756     break;   2756     break;
2757     case 111:   2757     case 111:
2758     tmp___17 = strtoul((char const   */* __restrict  */)optarg,   2758     tmp___17 = strtoul((char const   */* __restrict  */)optarg,
2759                        (char **/* __restrict  */)((void *)0), 0);   2759                        (char **/* __restrict  */)((void *)0), 0);
2760     diroff = (uint32 )tmp___17;   2760     diroff = (uint32 )tmp___17;
2761     break;   2761     break;
2762     case 112:   2762     case 112:
2763     if (0) {   2763     if (0) {
2764       __s1_len___2 = strlen((char const   *)optarg);   2764       __s1_len___2 = strlen((char const   *)optarg);
2765       __s2_len___2 = strlen("separate");   2765       __s2_len___2 = strlen("separate");
2766       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2766       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2767         goto _L___6;   2767         goto _L___6;
2768       } else   2768       } else
2769       if (__s1_len___2 >= 4U) {   2769       if (__s1_len___2 >= 4U) {
2770         _L___6: /* CIL Label */   2770         _L___6: /* CIL Label */
2771         if (! ((size_t )((void const   *)("separate" + 1)) - (size_t )((void const   *)"separate") == 1U)) {   2771         if (! ((size_t )((void const   *)("separate" + 1)) - (size_t )((void const   *)"separate") == 1U)) {
2772           tmp___31 = 1;   2772           tmp___31 = 1;
2773         } else   2773         } else
2774         if (__s2_len___2 >= 4U) {   2774         if (__s2_len___2 >= 4U) {
2775           tmp___31 = 1;   2775           tmp___31 = 1;
2776         } else {   2776         } else {
2777           tmp___31 = 0;   2777           tmp___31 = 0;
2778         }   2778         }
2779       } else {   2779       } else {
2780         tmp___31 = 0;   2780         tmp___31 = 0;
2781       }   2781       }
2782       if (tmp___31) {   2782       if (tmp___31) {
2783         tmp___26 = __builtin_strcmp((char const   *)optarg, "separate");   2783         tmp___26 = __builtin_strcmp((char const   *)optarg, "separate");
2784         tmp___30 = tmp___26;   2784         tmp___30 = tmp___26;
2785       } else {   2785       } else {
2786         tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");   2786         tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");
2787         tmp___30 = tmp___29;   2787         tmp___30 = tmp___29;
2788       }   2788       }
2789     } else {   2789     } else {
2790       tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");   2790       tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");
2791       tmp___30 = tmp___29;   2791       tmp___30 = tmp___29;
2792     }   2792     }
2793     if (tmp___30 == 0) {   2793     if (tmp___30 == 0) {
2794       defconfig = (uint16 )2;   2794       defconfig = (uint16 )2;
2795     } else {   2795     } else {
2796       if (0) {   2796       if (0) {
2797         __s1_len___1 = strlen((char const   *)optarg);   2797         __s1_len___1 = strlen((char const   *)optarg);
2798         __s2_len___1 = strlen("contig");   2798         __s2_len___1 = strlen("contig");
2799         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2799         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2800           goto _L___4;   2800           goto _L___4;
2801         } else   2801         } else
2802         if (__s1_len___1 >= 4U) {   2802         if (__s1_len___1 >= 4U) {
2803           _L___4: /* CIL Label */   2803           _L___4: /* CIL Label */
2804           if (! ((size_t )((void const   *)("contig" + 1)) - (size_t )((void const   *)"contig") == 1U)) {   2804           if (! ((size_t )((void const   *)("contig" + 1)) - (size_t )((void const   *)"contig") == 1U)) {
2805             tmp___24 = 1;   2805             tmp___24 = 1;
2806           } else   2806           } else
2807           if (__s2_len___1 >= 4U) {   2807           if (__s2_len___1 >= 4U) {
2808             tmp___24 = 1;   2808             tmp___24 = 1;
2809           } else {   2809           } else {
2810             tmp___24 = 0;   2810             tmp___24 = 0;
2811           }   2811           }
2812         } else {   2812         } else {
2813           tmp___24 = 0;   2813           tmp___24 = 0;
2814         }   2814         }
2815         if (tmp___24) {   2815         if (tmp___24) {
2816           tmp___19 = __builtin_strcmp((char const   *)optarg, "contig");   2816           tmp___19 = __builtin_strcmp((char const   *)optarg, "contig");
2817           tmp___23 = tmp___19;   2817           tmp___23 = tmp___19;
2818         } else {   2818         } else {
2819           tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");   2819           tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");
2820           tmp___23 = tmp___22;   2820           tmp___23 = tmp___22;
2821         }   2821         }
2822       } else {   2822       } else {
2823         tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");   2823         tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");
2824         tmp___23 = tmp___22;   2824         tmp___23 = tmp___22;
2825       }   2825       }
2826       if (tmp___23 == 0) {   2826       if (tmp___23 == 0) {
2827         defconfig = (uint16 )1;   2827         defconfig = (uint16 )1;
2828       } else {   2828       } else {
2829         usage();   2829         usage();
2830       }   2830       }
2831     }   2831     }
2832     break;   2832     break;
2833     case 114:   2833     case 114:
2834     tmp___32 = atol((char const   *)optarg);   2834     tmp___32 = atol((char const   *)optarg);
2835     defrowsperstrip = (uint32 )tmp___32;   2835     defrowsperstrip = (uint32 )tmp___32;
2836     break;   2836     break;
2837     case 115:   2837     case 115:
2838     outtiled = 0;   2838     outtiled = 0;
2839     break;   2839     break;
2840     case 116:   2840     case 116:
2841     outtiled = 1;   2841     outtiled = 1;
2842     break;   2842     break;
2843     case 119:   2843     case 119:
2844     outtiled = 1;   2844     outtiled = 1;
2845     tmp___33 = atoi((char const   *)optarg);   2845     tmp___33 = atoi((char const   *)optarg);
2846     deftilewidth = (uint32 )tmp___33;   2846     deftilewidth = (uint32 )tmp___33;
2847     break;   2847     break;
2848     case 66:   2848     case 66:
2849     tmp___34 = mp;   2849     tmp___34 = mp;
2850     mp ++;   2850     mp ++;
2851     *tmp___34 = (char )'b';   2851     *tmp___34 = (char )'b';
2852     *mp = (char )'\000';   2852     *mp = (char )'\000';
2853     break;   2853     break;
2854     case 76:   2854     case 76:
2855     tmp___35 = mp;   2855     tmp___35 = mp;
2856     mp ++;   2856     mp ++;
2857     *tmp___35 = (char )'l';   2857     *tmp___35 = (char )'l';
2858     *mp = (char )'\000';   2858     *mp = (char )'\000';
2859     break;   2859     break;
2860     case 77:   2860     case 77:
2861     tmp___36 = mp;   2861     tmp___36 = mp;
2862     mp ++;   2862     mp ++;
2863     *tmp___36 = (char )'m';   2863     *tmp___36 = (char )'m';
2864     *mp = (char )'\000';   2864     *mp = (char )'\000';
2865     break;   2865     break;
2866     case 67:   2866     case 67:
2867     tmp___37 = mp;   2867     tmp___37 = mp;
2868     mp ++;   2868     mp ++;
2869     *tmp___37 = (char )'c';   2869     *tmp___37 = (char )'c';
2870     *mp = (char )'\000';   2870     *mp = (char )'\000';
2871     break;   2871     break;
2872     case 63:   2872     case 63:
2873     usage();   2873     usage();
2874     }   2874     }
2875   }   2875   }
2876   if (argc - optind < 2) {   2876   if (argc - optind < 2) {
2877     usage();   2877     usage();
2878   } else {   2878   } else {
2879     2879  
2880   }   2880   }
2881   out = TIFFOpen((char const   *)*(argv + (argc - 1)), (char const   *)(mode));   2881   out = TIFFOpen((char const   *)*(argv + (argc - 1)), (char const   *)(mode));
2882   if ((unsigned int )out == (unsigned int )((void *)0)) {   2882   if ((unsigned int )out == (unsigned int )((void *)0)) {
2883     return (-2);   2883     return (-2);
2884   } else {   2884   } else {
2885     2885  
2886   }   2886   }
2887   if (argc - optind == 2) {   2887   if (argc - optind == 2) {
2888     pageNum = -1;   2888     pageNum = -1;
2889   } else {   2889   } else {
2890     2890  
2891   }   2891   }
2892   while (optind < argc - 1) {   2892   while (optind < argc - 1) {
2893     imageCursor = *(argv + optind);   2893     imageCursor = *(argv + optind);
2894     in = openSrcImage(& imageCursor);   2894     in = openSrcImage(& imageCursor);
2895     if ((unsigned int )in == (unsigned int )((void *)0)) {   2895     if ((unsigned int )in == (unsigned int )((void *)0)) {
2896       return (-3);   2896       return (-3);
2897     } else {   2897     } else {
2898     2898  
2899     }   2899     }
2900     if (diroff != 0U) {   2900     if (diroff != 0U) {
2901       tmp___39 = TIFFSetSubDirectory(in, diroff);   2901       tmp___39 = TIFFSetSubDirectory(in, diroff);
2902       if (tmp___39) {   2902       if (tmp___39) {
2903     2903  
2904       } else {   2904       } else {
2905         tmp___38 = TIFFFileName(in);   2905         tmp___38 = TIFFFileName(in);
2906         TIFFError(tmp___38, "Error, setting subdirectory at %#x", diroff);   2906         TIFFError(tmp___38, "Error, setting subdirectory at %#x", diroff);
2907         TIFFClose(out);   2907         TIFFClose(out);
2908         return (1);   2908         return (1);
2909       }   2909       }
2910     } else {   2910     } else {
2911     2911  
2912     }   2912     }
2913     while (1) {   2913     while (1) {
2914       config = defconfig;   2914       config = defconfig;
2915       compression = defcompression;   2915       compression = defcompression;
2916       predictor = defpredictor;   2916       predictor = defpredictor;
2917       fillorder = deffillorder;   2917       fillorder = deffillorder;
2918       rowsperstrip = defrowsperstrip;   2918       rowsperstrip = defrowsperstrip;
2919       tilewidth = deftilewidth;   2919       tilewidth = deftilewidth;
2920       tilelength = deftilelength;   2920       tilelength = deftilelength;
2921       g3opts = defg3opts;   2921       g3opts = defg3opts;
2922       tmp___40 = tiffcp(in, out);   2922       tmp___40 = tiffcp(in, out);
2923       if (tmp___40) {   2923       if (tmp___40) {
2924         tmp___41 = TIFFWriteDirectory(out);   2924         tmp___41 = TIFFWriteDirectory(out);
2925         if (tmp___41) {   2925         if (tmp___41) {
2926     2926  
2927         } else {   2927         } else {
2928           TIFFClose(out);   2928           TIFFClose(out);
2929           return (1);   2929           return (1);
2930         }   2930         }
2931       } else {   2931       } else {
2932         TIFFClose(out);   2932         TIFFClose(out);
2933         return (1);   2933         return (1);
2934       }   2934       }
2935       if (imageCursor) {   2935       if (imageCursor) {
2936         tmp___42 = nextSrcImage(in, & imageCursor);   2936         tmp___42 = nextSrcImage(in, & imageCursor);
2937         if (tmp___42) {   2937         if (tmp___42) {
2938     2938  
2939         } else {   2939         } else {
2940           break;   2940           break;
2941         }   2941         }
2942       } else {   2942       } else {
2943         tmp___43 = TIFFReadDirectory(in);   2943         tmp___43 = TIFFReadDirectory(in);
2944         if (tmp___43) {   2944         if (tmp___43) {
2945     2945  
2946         } else {   2946         } else {
2947           break;   2947           break;
2948         }   2948         }
2949       }   2949       }
2950     }   2950     }
2951     TIFFClose(in);   2951     TIFFClose(in);
2952     optind ++;   2952     optind ++;
2953   }   2953   }
2954   TIFFClose(out);   2954   TIFFClose(out);
2955   return (0);   2955   return (0);
2956 }   2956 }
2957 }   2957 }
2958 static void processG3Options(char *cp )   2958 static void processG3Options(char *cp )
2959 {   2959 {
2960   size_t tmp ;   2960   size_t tmp ;
2961   size_t tmp___0 ;   2961   size_t tmp___0 ;
2962   size_t __s1_len ;   2962   size_t __s1_len ;
2963   size_t __s2_len ;   2963   size_t __s2_len ;
2964   int tmp___1 ;   2964   int tmp___1 ;
2965   int tmp___2 ;   2965   int tmp___2 ;
2966   int tmp___3 ;   2966   int tmp___3 ;
2967   unsigned char const   *__s2 ;   2967   unsigned char const   *__s2 ;
2968   register int __result ;   2968   register int __result ;
2969   int tmp___4 ;   2969   int tmp___4 ;
2970   unsigned char const   *__s1 ;   2970   unsigned char const   *__s1 ;
2971   register int __result___0 ;   2971   register int __result___0 ;
2972   int tmp___5 ;   2972   int tmp___5 ;
2973   int tmp___6 ;   2973   int tmp___6 ;
2974   int tmp___7 ;   2974   int tmp___7 ;
2975   int tmp___8 ;   2975   int tmp___8 ;
2976   int tmp___9 ;   2976   int tmp___9 ;
2977   size_t tmp___10 ;   2977   size_t tmp___10 ;
2978   size_t tmp___11 ;   2978   size_t tmp___11 ;
2979   size_t tmp___12 ;   2979   size_t tmp___12 ;
2980   size_t tmp___13 ;   2980   size_t tmp___13 ;
2981   size_t __s1_len___0 ;   2981   size_t __s1_len___0 ;
2982   size_t __s2_len___0 ;   2982   size_t __s2_len___0 ;
2983   int tmp___14 ;   2983   int tmp___14 ;
2984   int tmp___15 ;   2984   int tmp___15 ;
2985   int tmp___16 ;   2985   int tmp___16 ;
2986   unsigned char const   *__s2___0 ;   2986   unsigned char const   *__s2___0 ;
2987   register int __result___1 ;   2987   register int __result___1 ;
2988   int tmp___17 ;   2988   int tmp___17 ;
2989   unsigned char const   *__s1___0 ;   2989   unsigned char const   *__s1___0 ;
2990   register int __result___2 ;   2990   register int __result___2 ;
2991   int tmp___18 ;   2991   int tmp___18 ;
2992   int tmp___19 ;   2992   int tmp___19 ;
2993   int tmp___20 ;   2993   int tmp___20 ;
2994   int tmp___21 ;   2994   int tmp___21 ;
2995   int tmp___22 ;   2995   int tmp___22 ;
2996   size_t tmp___23 ;   2996   size_t tmp___23 ;
2997   size_t tmp___24 ;   2997   size_t tmp___24 ;
2998   size_t tmp___25 ;   2998   size_t tmp___25 ;
2999   size_t tmp___26 ;   2999   size_t tmp___26 ;
3000   size_t __s1_len___1 ;   3000   size_t __s1_len___1 ;
3001   size_t __s2_len___1 ;   3001   size_t __s2_len___1 ;
3002   int tmp___27 ;   3002   int tmp___27 ;
3003   int tmp___28 ;   3003   int tmp___28 ;
3004   int tmp___29 ;   3004   int tmp___29 ;
3005   unsigned char const   *__s2___1 ;   3005   unsigned char const   *__s2___1 ;
3006   register int __result___3 ;   3006   register int __result___3 ;
3007   int tmp___30 ;   3007   int tmp___30 ;
3008   unsigned char const   *__s1___1 ;   3008   unsigned char const   *__s1___1 ;
3009   register int __result___4 ;   3009   register int __result___4 ;
3010   int tmp___31 ;   3010   int tmp___31 ;
3011   int tmp___32 ;   3011   int tmp___32 ;
3012   int tmp___33 ;   3012   int tmp___33 ;
3013   int tmp___34 ;   3013   int tmp___34 ;
3014   int tmp___35 ;   3014   int tmp___35 ;
3015   size_t tmp___36 ;   3015   size_t tmp___36 ;
3016   size_t tmp___37 ;   3016   size_t tmp___37 ;
3017   void *tmp___38 ;   3017   void *tmp___38 ;
3018   char *tmp___39 ;   3018   char *tmp___39 ;
3019   void *tmp___40 ;   3019   void *tmp___40 ;
3020   char *tmp___41 ;   3020   char *tmp___41 ;
3021     3021  
3022   {   3022   {
3023   tmp___41 = __builtin_strchr(cp, ':');   3023   tmp___41 = __builtin_strchr(cp, ':');
3024   cp = tmp___41;   3024   cp = tmp___41;
3025   if (cp) {   3025   if (cp) {
3026     if (defg3opts == 4294967295U) {   3026     if (defg3opts == 4294967295U) {
3027       defg3opts = (uint32 )0;   3027       defg3opts = (uint32 )0;
3028     } else {   3028     } else {
3029     3029  
3030     }   3030     }
3031     while (1) {   3031     while (1) {
3032       cp ++;   3032       cp ++;
3033       if (0) {   3033       if (0) {
3034         if (0) {   3034         if (0) {
3035           __s1_len___1 = strlen((char const   *)cp);   3035           __s1_len___1 = strlen((char const   *)cp);
3036           __s2_len___1 = strlen("1d");   3036           __s2_len___1 = strlen("1d");
3037           if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {   3037           if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {
3038             goto _L___4;   3038             goto _L___4;
3039           } else   3039           } else
3040           if (__s1_len___1 >= 4U) {   3040           if (__s1_len___1 >= 4U) {
3041             _L___4: /* CIL Label */   3041             _L___4: /* CIL Label */
3042             if (! ((size_t )((void const   *)("1d" + 1)) - (size_t )((void const   *)"1d") == 1U)) {   3042             if (! ((size_t )((void const   *)("1d" + 1)) - (size_t )((void const   *)"1d") == 1U)) {
3043               tmp___33 = 1;   3043               tmp___33 = 1;
3044             } else   3044             } else
3045             if (__s2_len___1 >= 4U) {   3045             if (__s2_len___1 >= 4U) {
3046               tmp___33 = 1;   3046               tmp___33 = 1;
3047             } else {   3047             } else {
3048               tmp___33 = 0;   3048               tmp___33 = 0;
3049             }   3049             }
3050           } else {   3050           } else {
3051             tmp___33 = 0;   3051             tmp___33 = 0;
3052           }   3052           }
3053           if (tmp___33) {   3053           if (tmp___33) {
3054             tmp___28 = __builtin_strcmp((char const   *)cp, "1d");   3054             tmp___28 = __builtin_strcmp((char const   *)cp, "1d");
3055             tmp___32 = tmp___28;   3055             tmp___32 = tmp___28;
3056           } else {   3056           } else {
3057             tmp___31 = __builtin_strcmp((char const   *)cp, "1d");   3057             tmp___31 = __builtin_strcmp((char const   *)cp, "1d");
3058             tmp___32 = tmp___31;   3058             tmp___32 = tmp___31;
3059           }   3059           }
3060         } else {   3060         } else {
3061           tmp___31 = __builtin_strcmp((char const   *)cp, "1d");   3061           tmp___31 = __builtin_strcmp((char const   *)cp, "1d");
3062           tmp___32 = tmp___31;   3062           tmp___32 = tmp___31;
3063         }   3063         }
3064         tmp___35 = tmp___32;   3064         tmp___35 = tmp___32;
3065       } else {   3065       } else {
3066         tmp___34 = strncmp((char const   *)cp, "1d", (size_t )2);   3066         tmp___34 = strncmp((char const   *)cp, "1d", (size_t )2);
3067         tmp___35 = tmp___34;   3067         tmp___35 = tmp___34;
3068       }   3068       }
3069       if (tmp___35 == 0) {   3069       if (tmp___35 == 0) {
3070         defg3opts &= 4294967294U;   3070         defg3opts &= 4294967294U;
3071       } else {   3071       } else {
3072         if (0) {   3072         if (0) {
3073           if (0) {   3073           if (0) {
3074             __s1_len___0 = strlen((char const   *)cp);   3074             __s1_len___0 = strlen((char const   *)cp);
3075             __s2_len___0 = strlen("2d");   3075             __s2_len___0 = strlen("2d");
3076             if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {   3076             if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {
3077               goto _L___2;   3077               goto _L___2;
3078             } else   3078             } else
3079             if (__s1_len___0 >= 4U) {   3079             if (__s1_len___0 >= 4U) {
3080               _L___2: /* CIL Label */   3080               _L___2: /* CIL Label */
3081               if (! ((size_t )((void const   *)("2d" + 1)) - (size_t )((void const   *)"2d") == 1U)) {   3081               if (! ((size_t )((void const   *)("2d" + 1)) - (size_t )((void const   *)"2d") == 1U)) {
3082                 tmp___20 = 1;   3082                 tmp___20 = 1;
3083               } else   3083               } else
3084               if (__s2_len___0 >= 4U) {   3084               if (__s2_len___0 >= 4U) {
3085                 tmp___20 = 1;   3085                 tmp___20 = 1;
3086               } else {   3086               } else {
3087                 tmp___20 = 0;   3087                 tmp___20 = 0;
3088               }   3088               }
3089             } else {   3089             } else {
3090               tmp___20 = 0;   3090               tmp___20 = 0;
3091             }   3091             }
3092             if (tmp___20) {   3092             if (tmp___20) {
3093               tmp___15 = __builtin_strcmp((char const   *)cp, "2d");   3093               tmp___15 = __builtin_strcmp((char const   *)cp, "2d");
3094               tmp___19 = tmp___15;   3094               tmp___19 = tmp___15;
3095             } else {   3095             } else {
3096               tmp___18 = __builtin_strcmp((char const   *)cp, "2d");   3096               tmp___18 = __builtin_strcmp((char const   *)cp, "2d");
3097               tmp___19 = tmp___18;   3097               tmp___19 = tmp___18;
3098             }   3098             }
3099           } else {   3099           } else {
3100             tmp___18 = __builtin_strcmp((char const   *)cp, "2d");   3100             tmp___18 = __builtin_strcmp((char const   *)cp, "2d");
3101             tmp___19 = tmp___18;   3101             tmp___19 = tmp___18;
3102           }   3102           }
3103           tmp___22 = tmp___19;   3103           tmp___22 = tmp___19;
3104         } else {   3104         } else {
3105           tmp___21 = strncmp((char const   *)cp, "2d", (size_t )2);   3105           tmp___21 = strncmp((char const   *)cp, "2d", (size_t )2);
3106           tmp___22 = tmp___21;   3106           tmp___22 = tmp___21;
3107         }   3107         }
3108         if (tmp___22 == 0) {   3108         if (tmp___22 == 0) {
3109           defg3opts |= 1U;   3109           defg3opts |= 1U;
3110         } else {   3110         } else {
3111           if (0) {   3111           if (0) {
3112             if (0) {   3112             if (0) {
3113               __s1_len = strlen((char const   *)cp);   3113               __s1_len = strlen((char const   *)cp);
3114               __s2_len = strlen("fill");   3114               __s2_len = strlen("fill");
3115               if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {   3115               if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {
3116                 goto _L___0;   3116                 goto _L___0;
3117               } else   3117               } else
3118               if (__s1_len >= 4U) {   3118               if (__s1_len >= 4U) {
3119                 _L___0: /* CIL Label */   3119                 _L___0: /* CIL Label */
3120                 if (! ((size_t )((void const   *)("fill" + 1)) - (size_t )((void const   *)"fill") == 1U)) {   3120                 if (! ((size_t )((void const   *)("fill" + 1)) - (size_t )((void const   *)"fill") == 1U)) {
3121                   tmp___7 = 1;   3121                   tmp___7 = 1;
3122                 } else   3122                 } else
3123                 if (__s2_len >= 4U) {   3123                 if (__s2_len >= 4U) {
3124                   tmp___7 = 1;   3124                   tmp___7 = 1;
3125                 } else {   3125                 } else {
3126                   tmp___7 = 0;   3126                   tmp___7 = 0;
3127                 }   3127                 }
3128               } else {   3128               } else {
3129                 tmp___7 = 0;   3129                 tmp___7 = 0;
3130               }   3130               }
3131               if (tmp___7) {   3131               if (tmp___7) {
3132                 tmp___2 = __builtin_strcmp((char const   *)cp, "fill");   3132                 tmp___2 = __builtin_strcmp((char const   *)cp, "fill");
3133                 tmp___6 = tmp___2;   3133                 tmp___6 = tmp___2;
3134               } else {   3134               } else {
3135                 tmp___5 = __builtin_strcmp((char const   *)cp, "fill");   3135                 tmp___5 = __builtin_strcmp((char const   *)cp, "fill");
3136                 tmp___6 = tmp___5;   3136                 tmp___6 = tmp___5;
3137               }   3137               }
3138             } else {   3138             } else {
3139               tmp___5 = __builtin_strcmp((char const   *)cp, "fill");   3139               tmp___5 = __builtin_strcmp((char const   *)cp, "fill");
3140               tmp___6 = tmp___5;   3140               tmp___6 = tmp___5;
3141             }   3141             }
3142             tmp___9 = tmp___6;   3142             tmp___9 = tmp___6;
3143           } else {   3143           } else {
3144             tmp___8 = strncmp((char const   *)cp, "fill", (size_t )4);   3144             tmp___8 = strncmp((char const   *)cp, "fill", (size_t )4);
3145             tmp___9 = tmp___8;   3145             tmp___9 = tmp___8;
3146           }   3146           }
3147           if (tmp___9 == 0) {   3147           if (tmp___9 == 0) {
3148             defg3opts |= 4U;   3148             defg3opts |= 4U;
3149           } else {   3149           } else {
3150             usage();   3150             usage();
3151           }   3151           }
3152         }   3152         }
3153       }   3153       }
3154       tmp___39 = __builtin_strchr(cp, ':');   3154       tmp___39 = __builtin_strchr(cp, ':');
3155       cp = tmp___39;   3155       cp = tmp___39;
3156       if (cp) {   3156       if (cp) {
3157     3157  
3158       } else {   3158       } else {
3159         break;   3159         break;
3160       }   3160       }
3161     }   3161     }
3162   } else {   3162   } else {
3163     3163  
3164   }   3164   }
3165   return;   3165   return;
3166 }   3166 }
3167 }   3167 }
3168 static int processCompressOptions(char *opt )   3168 static int processCompressOptions(char *opt )
3169 {   3169 {
3170   char *cp ;   3170   char *cp ;
3171   void *tmp ;   3171   void *tmp ;
3172   char *tmp___0 ;   3172   char *tmp___0 ;
3173   unsigned short const   **tmp___1 ;   3173   unsigned short const   **tmp___1 ;
3174   void *tmp___2 ;   3174   void *tmp___2 ;
3175   char *tmp___3 ;   3175   char *tmp___3 ;
3176   char *cp___0 ;   3176   char *cp___0 ;
3177   void *tmp___4 ;   3177   void *tmp___4 ;
3178   char *tmp___5 ;   3178   char *tmp___5 ;
3179   int tmp___6 ;   3179   int tmp___6 ;
3180   char *cp___1 ;   3180   char *cp___1 ;
3181   void *tmp___7 ;   3181   void *tmp___7 ;
3182   char *tmp___8 ;   3182   char *tmp___8 ;
3183   int tmp___9 ;   3183   int tmp___9 ;
3184   size_t tmp___10 ;   3184   size_t tmp___10 ;
3185   size_t tmp___11 ;   3185   size_t tmp___11 ;
3186   size_t __s1_len ;   3186   size_t __s1_len ;
3187   size_t __s2_len ;   3187   size_t __s2_len ;
3188   int tmp___12 ;   3188   int tmp___12 ;
3189   int tmp___13 ;   3189   int tmp___13 ;
3190   int tmp___14 ;   3190   int tmp___14 ;
3191   unsigned char const   *__s2 ;   3191   unsigned char const   *__s2 ;
3192   register int __result ;   3192   register int __result ;
3193   int tmp___15 ;   3193   int tmp___15 ;
3194   unsigned char const   *__s1 ;   3194   unsigned char const   *__s1 ;
3195   register int __result___0 ;   3195   register int __result___0 ;
3196   int tmp___16 ;   3196   int tmp___16 ;
3197   int tmp___17 ;   3197   int tmp___17 ;
3198   int tmp___18 ;   3198   int tmp___18 ;
3199   int tmp___19 ;   3199   int tmp___19 ;
3200   int tmp___20 ;   3200   int tmp___20 ;
3201   size_t tmp___21 ;   3201   size_t tmp___21 ;
3202   size_t tmp___22 ;   3202   size_t tmp___22 ;
3203   size_t tmp___23 ;   3203   size_t tmp___23 ;
3204   size_t tmp___24 ;   3204   size_t tmp___24 ;
3205   size_t __s1_len___0 ;   3205   size_t __s1_len___0 ;
3206   size_t __s2_len___0 ;   3206   size_t __s2_len___0 ;
3207   int tmp___25 ;   3207   int tmp___25 ;
3208   int tmp___26 ;   3208   int tmp___26 ;
3209   int tmp___27 ;   3209   int tmp___27 ;
3210   unsigned char const   *__s2___0 ;   3210   unsigned char const   *__s2___0 ;
3211   register int __result___1 ;   3211   register int __result___1 ;
3212   int tmp___28 ;   3212   int tmp___28 ;
3213   unsigned char const   *__s1___0 ;   3213   unsigned char const   *__s1___0 ;
3214   register int __result___2 ;   3214   register int __result___2 ;
3215   int tmp___29 ;   3215   int tmp___29 ;
3216   int tmp___30 ;   3216   int tmp___30 ;
3217   int tmp___31 ;   3217   int tmp___31 ;
3218   int tmp___32 ;   3218   int tmp___32 ;
3219   int tmp___33 ;   3219   int tmp___33 ;
3220   size_t tmp___34 ;   3220   size_t tmp___34 ;
3221   size_t tmp___35 ;   3221   size_t tmp___35 ;
3222   size_t __s1_len___1 ;   3222   size_t __s1_len___1 ;
3223   size_t __s2_len___1 ;   3223   size_t __s2_len___1 ;
3224   int tmp___36 ;   3224   int tmp___36 ;
3225   int tmp___37 ;   3225   int tmp___37 ;
3226   int tmp___38 ;   3226   int tmp___38 ;
3227   unsigned char const   *__s2___1 ;   3227   unsigned char const   *__s2___1 ;
3228   register int __result___3 ;   3228   register int __result___3 ;
3229   int tmp___39 ;   3229   int tmp___39 ;
3230   unsigned char const   *__s1___1 ;   3230   unsigned char const   *__s1___1 ;
3231   register int __result___4 ;   3231   register int __result___4 ;
3232   int tmp___40 ;   3232   int tmp___40 ;
3233   int tmp___41 ;   3233   int tmp___41 ;
3234   int tmp___42 ;   3234   int tmp___42 ;
3235   size_t tmp___43 ;   3235   size_t tmp___43 ;
3236   size_t tmp___44 ;   3236   size_t tmp___44 ;
3237   size_t __s1_len___2 ;   3237   size_t __s1_len___2 ;
3238   size_t __s2_len___2 ;   3238   size_t __s2_len___2 ;
3239   int tmp___45 ;   3239   int tmp___45 ;
3240   int tmp___46 ;   3240   int tmp___46 ;
3241   int tmp___47 ;   3241   int tmp___47 ;
3242   unsigned char const   *__s2___2 ;   3242   unsigned char const   *__s2___2 ;
3243   register int __result___5 ;   3243   register int __result___5 ;
3244   int tmp___48 ;   3244   int tmp___48 ;
3245   unsigned char const   *__s1___2 ;   3245   unsigned char const   *__s1___2 ;
3246   register int __result___6 ;   3246   register int __result___6 ;
3247   int tmp___49 ;   3247   int tmp___49 ;
3248   int tmp___50 ;   3248   int tmp___50 ;
3249   int tmp___51 ;   3249   int tmp___51 ;
3250   int tmp___52 ;   3250   int tmp___52 ;
3251   int tmp___53 ;   3251   int tmp___53 ;
3252   size_t tmp___54 ;   3252   size_t tmp___54 ;
3253   size_t tmp___55 ;   3253   size_t tmp___55 ;
3254   size_t tmp___56 ;   3254   size_t tmp___56 ;
3255   size_t tmp___57 ;   3255   size_t tmp___57 ;
3256   size_t __s1_len___3 ;   3256   size_t __s1_len___3 ;
3257   size_t __s2_len___3 ;   3257   size_t __s2_len___3 ;
3258   int tmp___58 ;   3258   int tmp___58 ;
3259   int tmp___59 ;   3259   int tmp___59 ;
3260   int tmp___60 ;   3260   int tmp___60 ;
3261   unsigned char const   *__s2___3 ;   3261   unsigned char const   *__s2___3 ;
3262   register int __result___7 ;   3262   register int __result___7 ;
3263   int tmp___61 ;   3263   int tmp___61 ;
3264   unsigned char const   *__s1___3 ;   3264   unsigned char const   *__s1___3 ;
3265   register int __result___8 ;   3265   register int __result___8 ;
3266   int tmp___62 ;   3266   int tmp___62 ;
3267   int tmp___63 ;   3267   int tmp___63 ;
3268   int tmp___64 ;   3268   int tmp___64 ;
3269   int tmp___65 ;   3269   int tmp___65 ;
3270   int tmp___66 ;   3270   int tmp___66 ;
3271   size_t tmp___67 ;   3271   size_t tmp___67 ;
3272   size_t tmp___68 ;   3272   size_t tmp___68 ;
3273   size_t __s1_len___4 ;   3273   size_t __s1_len___4 ;
3274   size_t __s2_len___4 ;   3274   size_t __s2_len___4 ;
3275   int tmp___69 ;   3275   int tmp___69 ;
3276   int tmp___70 ;   3276   int tmp___70 ;
3277   int tmp___71 ;   3277   int tmp___71 ;
3278   unsigned char const   *__s2___4 ;   3278   unsigned char const   *__s2___4 ;
3279   register int __result___9 ;   3279   register int __result___9 ;
3280   int tmp___72 ;   3280   int tmp___72 ;
3281   unsigned char const   *__s1___4 ;   3281   unsigned char const   *__s1___4 ;
3282   register int __result___10 ;   3282   register int __result___10 ;
3283   int tmp___73 ;   3283   int tmp___73 ;
3284   int tmp___74 ;   3284   int tmp___74 ;
3285   int tmp___75 ;   3285   int tmp___75 ;
3286   size_t __s1_len___5 ;   3286   size_t __s1_len___5 ;
3287   size_t __s2_len___5 ;   3287   size_t __s2_len___5 ;
3288   int tmp___76 ;   3288   int tmp___76 ;
3289   int tmp___77 ;   3289   int tmp___77 ;
3290   int tmp___78 ;   3290   int tmp___78 ;
3291   unsigned char const   *__s2___5 ;   3291   unsigned char const   *__s2___5 ;
3292   register int __result___11 ;   3292   register int __result___11 ;
3293   int tmp___79 ;   3293   int tmp___79 ;
3294   unsigned char const   *__s1___5 ;   3294   unsigned char const   *__s1___5 ;
3295   register int __result___12 ;   3295   register int __result___12 ;
3296   int tmp___80 ;   3296   int tmp___80 ;
3297   int tmp___81 ;   3297   int tmp___81 ;
3298   int tmp___82 ;   3298   int tmp___82 ;
3299     3299  
3300   {   3300   {
3301   if (0) {   3301   if (0) {
3302     __s1_len___5 = strlen((char const   *)opt);   3302     __s1_len___5 = strlen((char const   *)opt);
3303     __s2_len___5 = strlen("none");   3303     __s2_len___5 = strlen("none");
3304     if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3304     if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3305       goto _L___12;   3305       goto _L___12;
3306     } else   3306     } else
3307     if (__s1_len___5 >= 4U) {   3307     if (__s1_len___5 >= 4U) {
3308       _L___12: /* CIL Label */   3308       _L___12: /* CIL Label */
3309       if (! ((size_t )((void const   *)("none" + 1)) - (size_t )((void const   *)"none") == 1U)) {   3309       if (! ((size_t )((void const   *)("none" + 1)) - (size_t )((void const   *)"none") == 1U)) {
3310         tmp___82 = 1;   3310         tmp___82 = 1;
3311       } else   3311       } else
3312       if (__s2_len___5 >= 4U) {   3312       if (__s2_len___5 >= 4U) {
3313         tmp___82 = 1;   3313         tmp___82 = 1;
3314       } else {   3314       } else {
3315         tmp___82 = 0;   3315         tmp___82 = 0;
3316       }   3316       }
3317     } else {   3317     } else {
3318       tmp___82 = 0;   3318       tmp___82 = 0;
3319     }   3319     }
3320     if (tmp___82) {   3320     if (tmp___82) {
3321       tmp___77 = __builtin_strcmp((char const   *)opt, "none");   3321       tmp___77 = __builtin_strcmp((char const   *)opt, "none");
3322       tmp___81 = tmp___77;   3322       tmp___81 = tmp___77;
3323     } else {   3323     } else {
3324       tmp___80 = __builtin_strcmp((char const   *)opt, "none");   3324       tmp___80 = __builtin_strcmp((char const   *)opt, "none");
3325       tmp___81 = tmp___80;   3325       tmp___81 = tmp___80;
3326     }   3326     }
3327   } else {   3327   } else {
3328     tmp___80 = __builtin_strcmp((char const   *)opt, "none");   3328     tmp___80 = __builtin_strcmp((char const   *)opt, "none");
3329     tmp___81 = tmp___80;   3329     tmp___81 = tmp___80;
3330   }   3330   }
3331   if (tmp___81 == 0) {   3331   if (tmp___81 == 0) {
3332     defcompression = (uint16 )1;   3332     defcompression = (uint16 )1;
3333   } else {   3333   } else {
3334     if (0) {   3334     if (0) {
3335       __s1_len___4 = strlen((char const   *)opt);   3335       __s1_len___4 = strlen((char const   *)opt);
3336       __s2_len___4 = strlen("packbits");   3336       __s2_len___4 = strlen("packbits");
3337       if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3337       if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3338         goto _L___10;   3338         goto _L___10;
3339       } else   3339       } else
3340       if (__s1_len___4 >= 4U) {   3340       if (__s1_len___4 >= 4U) {
3341         _L___10: /* CIL Label */   3341         _L___10: /* CIL Label */
3342         if (! ((size_t )((void const   *)("packbits" + 1)) - (size_t )((void const   *)"packbits") == 1U)) {   3342         if (! ((size_t )((void const   *)("packbits" + 1)) - (size_t )((void const   *)"packbits") == 1U)) {
3343           tmp___75 = 1;   3343           tmp___75 = 1;
3344         } else   3344         } else
3345         if (__s2_len___4 >= 4U) {   3345         if (__s2_len___4 >= 4U) {
3346           tmp___75 = 1;   3346           tmp___75 = 1;
3347         } else {   3347         } else {
3348           tmp___75 = 0;   3348           tmp___75 = 0;
3349         }   3349         }
3350       } else {   3350       } else {
3351         tmp___75 = 0;   3351         tmp___75 = 0;
3352       }   3352       }
3353       if (tmp___75) {   3353       if (tmp___75) {
3354         tmp___70 = __builtin_strcmp((char const   *)opt, "packbits");   3354         tmp___70 = __builtin_strcmp((char const   *)opt, "packbits");
3355         tmp___74 = tmp___70;   3355         tmp___74 = tmp___70;
3356       } else {   3356       } else {
3357         tmp___73 = __builtin_strcmp((char const   *)opt, "packbits");   3357         tmp___73 = __builtin_strcmp((char const   *)opt, "packbits");
3358         tmp___74 = tmp___73;   3358         tmp___74 = tmp___73;
3359       }   3359       }
3360     } else {   3360     } else {
3361       tmp___73 = __builtin_strcmp((char const   *)opt, "packbits");   3361       tmp___73 = __builtin_strcmp((char const   *)opt, "packbits");
3362       tmp___74 = tmp___73;   3362       tmp___74 = tmp___73;
3363     }   3363     }
3364     if (tmp___74 == 0) {   3364     if (tmp___74 == 0) {
3365       defcompression = (uint16 )32773;   3365       defcompression = (uint16 )32773;
3366     } else {   3366     } else {
3367       if (0) {   3367       if (0) {
3368         if (0) {   3368         if (0) {
3369           __s1_len___3 = strlen((char const   *)opt);   3369           __s1_len___3 = strlen((char const   *)opt);
3370           __s2_len___3 = strlen("jpeg");   3370           __s2_len___3 = strlen("jpeg");
3371           if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3371           if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3372             goto _L___8;   3372             goto _L___8;
3373           } else   3373           } else
3374           if (__s1_len___3 >= 4U) {   3374           if (__s1_len___3 >= 4U) {
3375             _L___8: /* CIL Label */   3375             _L___8: /* CIL Label */
3376             if (! ((size_t )((void const   *)("jpeg" + 1)) - (size_t )((void const   *)"jpeg") == 1U)) {   3376             if (! ((size_t )((void const   *)("jpeg" + 1)) - (size_t )((void const   *)"jpeg") == 1U)) {
3377               tmp___64 = 1;   3377               tmp___64 = 1;
3378             } else   3378             } else
3379             if (__s2_len___3 >= 4U) {   3379             if (__s2_len___3 >= 4U) {
3380               tmp___64 = 1;   3380               tmp___64 = 1;
3381             } else {   3381             } else {
3382               tmp___64 = 0;   3382               tmp___64 = 0;
3383             }   3383             }
3384           } else {   3384           } else {
3385             tmp___64 = 0;   3385             tmp___64 = 0;
3386           }   3386           }
3387           if (tmp___64) {   3387           if (tmp___64) {
3388             tmp___59 = __builtin_strcmp((char const   *)opt, "jpeg");   3388             tmp___59 = __builtin_strcmp((char const   *)opt, "jpeg");
3389             tmp___63 = tmp___59;   3389             tmp___63 = tmp___59;
3390           } else {   3390           } else {
3391             tmp___62 = __builtin_strcmp((char const   *)opt, "jpeg");   3391             tmp___62 = __builtin_strcmp((char const   *)opt, "jpeg");
3392             tmp___63 = tmp___62;   3392             tmp___63 = tmp___62;
3393           }   3393           }
3394         } else {   3394         } else {
3395           tmp___62 = __builtin_strcmp((char const   *)opt, "jpeg");   3395           tmp___62 = __builtin_strcmp((char const   *)opt, "jpeg");
3396           tmp___63 = tmp___62;   3396           tmp___63 = tmp___62;
3397         }   3397         }
3398         tmp___66 = tmp___63;   3398         tmp___66 = tmp___63;
3399       } else {   3399       } else {
3400         tmp___65 = strncmp((char const   *)opt, "jpeg", (size_t )4);   3400         tmp___65 = strncmp((char const   *)opt, "jpeg", (size_t )4);
3401         tmp___66 = tmp___65;   3401         tmp___66 = tmp___65;
3402       }   3402       }
3403       if (tmp___66 == 0) {   3403       if (tmp___66 == 0) {
3404         tmp___0 = __builtin_strchr(opt, ':');   3404         tmp___0 = __builtin_strchr(opt, ':');
3405         cp = tmp___0;   3405         cp = tmp___0;
3406         if (cp) {   3406         if (cp) {
3407           tmp___1 = __ctype_b_loc();   3407           tmp___1 = __ctype_b_loc();
3408           if ((int const   )*(*tmp___1 + (int )*(cp + 1)) & 2048) {   3408           if ((int const   )*(*tmp___1 + (int )*(cp + 1)) & 2048) {
3409             quality = atoi((char const   *)(cp + 1));   3409             quality = atoi((char const   *)(cp + 1));
3410           } else {   3410           } else {
3411     3411  
3412           }   3412           }
3413         } else {   3413         } else {
3414     3414  
3415         }   3415         }
3416         if (cp) {   3416         if (cp) {
3417           tmp___3 = __builtin_strchr(cp, 'r');   3417           tmp___3 = __builtin_strchr(cp, 'r');
3418           if (tmp___3) {   3418           if (tmp___3) {
3419             jpegcolormode = 0;   3419             jpegcolormode = 0;
3420           } else {   3420           } else {
3421     3421  
3422           }   3422           }
3423         } else {   3423         } else {
3424     3424  
3425         }   3425         }
3426         defcompression = (uint16 )7;   3426         defcompression = (uint16 )7;
3427       } else {   3427       } else {
3428         if (0) {   3428         if (0) {
3429           if (0) {   3429           if (0) {
3430             __s1_len___2 = strlen((char const   *)opt);   3430             __s1_len___2 = strlen((char const   *)opt);
3431             __s2_len___2 = strlen("g3");   3431             __s2_len___2 = strlen("g3");
3432             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3432             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3433               goto _L___6;   3433               goto _L___6;
3434             } else   3434             } else
3435             if (__s1_len___2 >= 4U) {   3435             if (__s1_len___2 >= 4U) {
3436               _L___6: /* CIL Label */   3436               _L___6: /* CIL Label */
3437               if (! ((size_t )((void const   *)("g3" + 1)) - (size_t )((void const   *)"g3") == 1U)) {   3437               if (! ((size_t )((void const   *)("g3" + 1)) - (size_t )((void const   *)"g3") == 1U)) {
3438                 tmp___51 = 1;   3438                 tmp___51 = 1;
3439               } else   3439               } else
3440               if (__s2_len___2 >= 4U) {   3440               if (__s2_len___2 >= 4U) {
3441                 tmp___51 = 1;   3441                 tmp___51 = 1;
3442               } else {   3442               } else {
3443                 tmp___51 = 0;   3443                 tmp___51 = 0;
3444               }   3444               }
3445             } else {   3445             } else {
3446               tmp___51 = 0;   3446               tmp___51 = 0;
3447             }   3447             }
3448             if (tmp___51) {   3448             if (tmp___51) {
3449               tmp___46 = __builtin_strcmp((char const   *)opt, "g3");   3449               tmp___46 = __builtin_strcmp((char const   *)opt, "g3");
3450               tmp___50 = tmp___46;   3450               tmp___50 = tmp___46;
3451             } else {   3451             } else {
3452               tmp___49 = __builtin_strcmp((char const   *)opt, "g3");   3452               tmp___49 = __builtin_strcmp((char const   *)opt, "g3");
3453               tmp___50 = tmp___49;   3453               tmp___50 = tmp___49;
3454             }   3454             }
3455           } else {   3455           } else {
3456             tmp___49 = __builtin_strcmp((char const   *)opt, "g3");   3456             tmp___49 = __builtin_strcmp((char const   *)opt, "g3");
3457             tmp___50 = tmp___49;   3457             tmp___50 = tmp___49;
3458           }   3458           }
3459           tmp___53 = tmp___50;   3459           tmp___53 = tmp___50;
3460         } else {   3460         } else {
3461           tmp___52 = strncmp((char const   *)opt, "g3", (size_t )2);   3461           tmp___52 = strncmp((char const   *)opt, "g3", (size_t )2);
3462           tmp___53 = tmp___52;   3462           tmp___53 = tmp___52;
3463         }   3463         }
3464         if (tmp___53 == 0) {   3464         if (tmp___53 == 0) {
3465           processG3Options(opt);   3465           processG3Options(opt);
3466           defcompression = (uint16 )3;   3466           defcompression = (uint16 )3;
3467         } else {   3467         } else {
3468           if (0) {   3468           if (0) {
3469             __s1_len___1 = strlen((char const   *)opt);   3469             __s1_len___1 = strlen((char const   *)opt);
3470             __s2_len___1 = strlen("g4");   3470             __s2_len___1 = strlen("g4");
3471             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3471             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3472               goto _L___4;   3472               goto _L___4;
3473             } else   3473             } else
3474             if (__s1_len___1 >= 4U) {   3474             if (__s1_len___1 >= 4U) {
3475               _L___4: /* CIL Label */   3475               _L___4: /* CIL Label */
3476               if (! ((size_t )((void const   *)("g4" + 1)) - (size_t )((void const   *)"g4") == 1U)) {   3476               if (! ((size_t )((void const   *)("g4" + 1)) - (size_t )((void const   *)"g4") == 1U)) {
3477                 tmp___42 = 1;   3477                 tmp___42 = 1;
3478               } else   3478               } else
3479               if (__s2_len___1 >= 4U) {   3479               if (__s2_len___1 >= 4U) {
3480                 tmp___42 = 1;   3480                 tmp___42 = 1;
3481               } else {   3481               } else {
3482                 tmp___42 = 0;   3482                 tmp___42 = 0;
3483               }   3483               }
3484             } else {   3484             } else {
3485               tmp___42 = 0;   3485               tmp___42 = 0;
3486             }   3486             }
3487             if (tmp___42) {   3487             if (tmp___42) {
3488               tmp___37 = __builtin_strcmp((char const   *)opt, "g4");   3488               tmp___37 = __builtin_strcmp((char const   *)opt, "g4");
3489               tmp___41 = tmp___37;   3489               tmp___41 = tmp___37;
3490             } else {   3490             } else {
3491               tmp___40 = __builtin_strcmp((char const   *)opt, "g4");   3491               tmp___40 = __builtin_strcmp((char const   *)opt, "g4");
3492               tmp___41 = tmp___40;   3492               tmp___41 = tmp___40;
3493             }   3493             }
3494           } else {   3494           } else {
3495             tmp___40 = __builtin_strcmp((char const   *)opt, "g4");   3495             tmp___40 = __builtin_strcmp((char const   *)opt, "g4");
3496             tmp___41 = tmp___40;   3496             tmp___41 = tmp___40;
3497           }   3497           }
3498           if (tmp___41 == 0) {   3498           if (tmp___41 == 0) {
3499             defcompression = (uint16 )4;   3499             defcompression = (uint16 )4;
3500           } else {   3500           } else {
3501             if (0) {   3501             if (0) {
3502               if (0) {   3502               if (0) {
3503                 __s1_len___0 = strlen((char const   *)opt);   3503                 __s1_len___0 = strlen((char const   *)opt);
3504                 __s2_len___0 = strlen("lzw");   3504                 __s2_len___0 = strlen("lzw");
3505                 if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3505                 if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3506                   goto _L___2;   3506                   goto _L___2;
3507                 } else   3507                 } else
3508                 if (__s1_len___0 >= 4U) {   3508                 if (__s1_len___0 >= 4U) {
3509                   _L___2: /* CIL Label */   3509                   _L___2: /* CIL Label */
3510                   if (! ((size_t )((void const   *)("lzw" + 1)) - (size_t )((void const   *)"lzw") == 1U)) {   3510                   if (! ((size_t )((void const   *)("lzw" + 1)) - (size_t )((void const   *)"lzw") == 1U)) {
3511                     tmp___31 = 1;   3511                     tmp___31 = 1;
3512                   } else   3512                   } else
3513                   if (__s2_len___0 >= 4U) {   3513                   if (__s2_len___0 >= 4U) {
3514                     tmp___31 = 1;   3514                     tmp___31 = 1;
3515                   } else {   3515                   } else {
3516                     tmp___31 = 0;   3516                     tmp___31 = 0;
3517                   }   3517                   }
3518                 } else {   3518                 } else {
3519                   tmp___31 = 0;   3519                   tmp___31 = 0;
3520                 }   3520                 }
3521                 if (tmp___31) {   3521                 if (tmp___31) {
3522                   tmp___26 = __builtin_strcmp((char const   *)opt, "lzw");   3522                   tmp___26 = __builtin_strcmp((char const   *)opt, "lzw");
3523                   tmp___30 = tmp___26;   3523                   tmp___30 = tmp___26;
3524                 } else {   3524                 } else {
3525                   tmp___29 = __builtin_strcmp((char const   *)opt, "lzw");   3525                   tmp___29 = __builtin_strcmp((char const   *)opt, "lzw");
3526                   tmp___30 = tmp___29;   3526                   tmp___30 = tmp___29;
3527                 }   3527                 }
3528               } else {   3528               } else {
3529                 tmp___29 = __builtin_strcmp((char const   *)opt, "lzw");   3529                 tmp___29 = __builtin_strcmp((char const   *)opt, "lzw");
3530                 tmp___30 = tmp___29;   3530                 tmp___30 = tmp___29;
3531               }   3531               }
3532               tmp___33 = tmp___30;   3532               tmp___33 = tmp___30;
3533             } else {   3533             } else {
3534               tmp___32 = strncmp((char const   *)opt, "lzw", (size_t )3);   3534               tmp___32 = strncmp((char const   *)opt, "lzw", (size_t )3);
3535               tmp___33 = tmp___32;   3535               tmp___33 = tmp___32;
3536             }   3536             }
3537             if (tmp___33 == 0) {   3537             if (tmp___33 == 0) {
3538               tmp___5 = __builtin_strchr(opt, ':');   3538               tmp___5 = __builtin_strchr(opt, ':');
3539               cp___0 = tmp___5;   3539               cp___0 = tmp___5;
3540               if (cp___0) {   3540               if (cp___0) {
3541                 tmp___6 = atoi((char const   *)(cp___0 + 1));   3541                 tmp___6 = atoi((char const   *)(cp___0 + 1));
3542                 defpredictor = (uint16 )tmp___6;   3542                 defpredictor = (uint16 )tmp___6;
3543               } else {   3543               } else {
3544     3544  
3545               }   3545               }
3546               defcompression = (uint16 )5;   3546               defcompression = (uint16 )5;
3547             } else {   3547             } else {
3548               if (0) {   3548               if (0) {
3549                 if (0) {   3549                 if (0) {
3550                   __s1_len = strlen((char const   *)opt);   3550                   __s1_len = strlen((char const   *)opt);
3551                   __s2_len = strlen("zip");   3551                   __s2_len = strlen("zip");
3552                   if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3552                   if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3553                     goto _L___0;   3553                     goto _L___0;
3554                   } else   3554                   } else
3555                   if (__s1_len >= 4U) {   3555                   if (__s1_len >= 4U) {
3556                     _L___0: /* CIL Label */   3556                     _L___0: /* CIL Label */
3557                     if (! ((size_t )((void const   *)("zip" + 1)) - (size_t )((void const   *)"zip") == 1U)) {   3557                     if (! ((size_t )((void const   *)("zip" + 1)) - (size_t )((void const   *)"zip") == 1U)) {
3558                       tmp___18 = 1;   3558                       tmp___18 = 1;
3559                     } else   3559                     } else
3560                     if (__s2_len >= 4U) {   3560                     if (__s2_len >= 4U) {
3561                       tmp___18 = 1;   3561                       tmp___18 = 1;
3562                     } else {   3562                     } else {
3563                       tmp___18 = 0;   3563                       tmp___18 = 0;
3564                     }   3564                     }
3565                   } else {   3565                   } else {
3566                     tmp___18 = 0;   3566                     tmp___18 = 0;
3567                   }   3567                   }
3568                   if (tmp___18) {   3568                   if (tmp___18) {
3569                     tmp___13 = __builtin_strcmp((char const   *)opt, "zip");   3569                     tmp___13 = __builtin_strcmp((char const   *)opt, "zip");
3570                     tmp___17 = tmp___13;   3570                     tmp___17 = tmp___13;
3571                   } else {   3571                   } else {
3572                     tmp___16 = __builtin_strcmp((char const   *)opt, "zip");   3572                     tmp___16 = __builtin_strcmp((char const   *)opt, "zip");
3573                     tmp___17 = tmp___16;   3573                     tmp___17 = tmp___16;
3574                   }   3574                   }
3575                 } else {   3575                 } else {
3576                   tmp___16 = __builtin_strcmp((char const   *)opt, "zip");   3576                   tmp___16 = __builtin_strcmp((char const   *)opt, "zip");
3577                   tmp___17 = tmp___16;   3577                   tmp___17 = tmp___16;
3578                 }   3578                 }
3579                 tmp___20 = tmp___17;   3579                 tmp___20 = tmp___17;
3580               } else {   3580               } else {
3581                 tmp___19 = strncmp((char const   *)opt, "zip", (size_t )3);   3581                 tmp___19 = strncmp((char const   *)opt, "zip", (size_t )3);
3582                 tmp___20 = tmp___19;   3582                 tmp___20 = tmp___19;
3583               }   3583               }
3584               if (tmp___20 == 0) {   3584               if (tmp___20 == 0) {
3585                 tmp___8 = __builtin_strchr(opt, ':');   3585                 tmp___8 = __builtin_strchr(opt, ':');
3586                 cp___1 = tmp___8;   3586                 cp___1 = tmp___8;
3587                 if (cp___1) {   3587                 if (cp___1) {
3588                   tmp___9 = atoi((char const   *)(cp___1 + 1));   3588                   tmp___9 = atoi((char const   *)(cp___1 + 1));
3589                   defpredictor = (uint16 )tmp___9;   3589                   defpredictor = (uint16 )tmp___9;
3590                 } else {   3590                 } else {
3591     3591  
3592                 }   3592                 }
3593                 defcompression = (uint16 )8;   3593                 defcompression = (uint16 )8;
3594               } else {   3594               } else {
3595                 return (0);   3595                 return (0);
3596               }   3596               }
3597             }   3597             }
3598           }   3598           }
3599         }   3599         }
3600       }   3600       }
3601     }   3601     }
3602   }   3602   }
3603   return (1);   3603   return (1);
3604 }   3604 }
3605 }   3605 }
3606 char *stuff[47]  =   3606 char *stuff[47]  =
3607   {      (char *)"usage: tiffcp [options] input... output",      (char *)"where options are:",      (char *)" -a\t\tappend to output instead of overwriting",      (char *)" -o offset\tset initial directory offset",   3607   {      (char *)"usage: tiffcp [options] input... output",      (char *)"where options are:",      (char *)" -a\t\tappend to output instead of overwriting",      (char *)" -o offset\tset initial directory offset",
3608         (char *)" -p contig\tpack samples contiguously (e.g. RGBRGB...)",      (char *)" -p separate\tstore samples separately (e.g. RRR...GGG...BBB...)",      (char *)" -s\t\twrite output in strips",      (char *)" -t\t\twrite output in tiles",   3608         (char *)" -p contig\tpack samples contiguously (e.g. RGBRGB...)",      (char *)" -p separate\tstore samples separately (e.g. RRR...GGG...BBB...)",      (char *)" -s\t\twrite output in strips",      (char *)" -t\t\twrite output in tiles",
3609         (char *)" -i\t\tignore read errors",      (char *)" -b file[,#]\tbias (dark) monochrome image to be subtracted from all others",      (char *)" -,=%\t\tuse % rather than , to separate image #\'s (per Note below)",      (char *)"",   3609         (char *)" -i\t\tignore read errors",      (char *)" -b file[,#]\tbias (dark) monochrome image to be subtracted from all others",      (char *)" -,=%\t\tuse % rather than , to separate image #\'s (per Note below)",      (char *)"",
3610         (char *)" -r #\t\tmake each strip have no more than # rows",      (char *)" -w #\t\tset output tile width (pixels)",      (char *)" -l #\t\tset output tile length (pixels)",      (char *)"",   3610         (char *)" -r #\t\tmake each strip have no more than # rows",      (char *)" -w #\t\tset output tile width (pixels)",      (char *)" -l #\t\tset output tile length (pixels)",      (char *)"",
3611         (char *)" -f lsb2msb\tforce lsb-to-msb FillOrder for output",      (char *)" -f msb2lsb\tforce msb-to-lsb FillOrder for output",      (char *)"",      (char *)" -c lzw[:opts]\tcompress output with Lempel-Ziv & Welch encoding",   3611         (char *)" -f lsb2msb\tforce lsb-to-msb FillOrder for output",      (char *)" -f msb2lsb\tforce msb-to-lsb FillOrder for output",      (char *)"",      (char *)" -c lzw[:opts]\tcompress output with Lempel-Ziv & Welch encoding",
3612         (char *)" -c zip[:opts]\tcompress output with deflate encoding",      (char *)" -c jpeg[:opts]\tcompress output with JPEG encoding",      (char *)" -c packbits\tcompress output with packbits encoding",      (char *)" -c g3[:opts]\tcompress output with CCITT Group 3 encoding",   3612         (char *)" -c zip[:opts]\tcompress output with deflate encoding",      (char *)" -c jpeg[:opts]\tcompress output with JPEG encoding",      (char *)" -c packbits\tcompress output with packbits encoding",      (char *)" -c g3[:opts]\tcompress output with CCITT Group 3 encoding",
3613         (char *)" -c g4\t\tcompress output with CCITT Group 4 encoding",      (char *)" -c none\tuse no compression algorithm on output",      (char *)"",      (char *)"Group 3 options:",   3613         (char *)" -c g4\t\tcompress output with CCITT Group 4 encoding",      (char *)" -c none\tuse no compression algorithm on output",      (char *)"",      (char *)"Group 3 options:",
3614         (char *)" 1d\t\tuse default CCITT Group 3 1D-encoding",      (char *)" 2d\t\tuse optional CCITT Group 3 2D-encoding",      (char *)" fill\t\tbyte-align EOL codes",      (char *)"For example, -c g3:2d:fill to get G3-2D-encoded data with byte-aligned EOLs",   3614         (char *)" 1d\t\tuse default CCITT Group 3 1D-encoding",      (char *)" 2d\t\tuse optional CCITT Group 3 2D-encoding",      (char *)" fill\t\tbyte-align EOL codes",      (char *)"For example, -c g3:2d:fill to get G3-2D-encoded data with byte-aligned EOLs",
3615         (char *)"",      (char *)"JPEG options:",      (char *)" #\t\tset compression quality level (0-100, default 75)",      (char *)" r\t\toutput color image as RGB rather than YCbCr",   3615         (char *)"",      (char *)"JPEG options:",      (char *)" #\t\tset compression quality level (0-100, default 75)",      (char *)" r\t\toutput color image as RGB rather than YCbCr",
3616         (char *)"For example, -c jpeg:r:50 to get JPEG-encoded RGB data with 50% comp. quality",      (char *)"",      (char *)"LZW and deflate options:",      (char *)" #\t\tset predictor value",   3616         (char *)"For example, -c jpeg:r:50 to get JPEG-encoded RGB data with 50% comp. quality",      (char *)"",      (char *)"LZW and deflate options:",      (char *)" #\t\tset predictor value",
3617         (char *)"For example, -c lzw:2 to get LZW-encoded data with horizontal differencing",      (char *)"",      (char *)"Note that input filenames may be of the form filename,x,y,z",      (char *)"where x, y, and z specify image numbers in the filename to copy.",   3617         (char *)"For example, -c lzw:2 to get LZW-encoded data with horizontal differencing",      (char *)"",      (char *)"Note that input filenames may be of the form filename,x,y,z",      (char *)"where x, y, and z specify image numbers in the filename to copy.",
3618         (char *)"example:  tiffcp -c none -b esp.tif,1 esp.tif,0 test.tif",      (char *)"  subtract 2nd image in esp.tif from 1st yielding uncompressed result test.tif",      (char *)((void *)0)};   3618         (char *)"example:  tiffcp -c none -b esp.tif,1 esp.tif,0 test.tif",      (char *)"  subtract 2nd image in esp.tif from 1st yielding uncompressed result test.tif",      (char *)((void *)0)};
3619 static void usage(void)   3619 static void usage(void)
3620 {   3620 {
3621   char buf[8192] ;   3621   char buf[8192] ;
3622   int i ;   3622   int i ;
3623   char const   *tmp ;   3623   char const   *tmp ;
3624     3624  
3625   {   3625   {
3626   setbuf((FILE */* __restrict  */)stderr, (char */* __restrict  */)(buf));   3626   setbuf((FILE */* __restrict  */)stderr, (char */* __restrict  */)(buf));
3627   tmp = TIFFGetVersion();   3627   tmp = TIFFGetVersion();
3628   fprintf((FILE */* __restrict  */)stderr,   3628   fprintf((FILE */* __restrict  */)stderr,
3629           (char const   */* __restrict  */)"%s\n\n", tmp);   3629           (char const   */* __restrict  */)"%s\n\n", tmp);
3630   i = 0;   3630   i = 0;
3631   while ((unsigned int )stuff[i] != (unsigned int )((void *)0)) {   3631   while ((unsigned int )stuff[i] != (unsigned int )((void *)0)) {
3632     fprintf((FILE */* __restrict  */)stderr,   3632     fprintf((FILE */* __restrict  */)stderr,
3633             (char const   */* __restrict  */)"%s\n", stuff[i]);   3633             (char const   */* __restrict  */)"%s\n", stuff[i]);
3634     i ++;   3634     i ++;
3635   }   3635   }
3636   exit(-1);   3636   exit(-1);
3637 }   3637 }
3638 }   3638 }
3639 static void cpTag(TIFF *in , TIFF *out , uint16 tag , uint16 count ,   3639 static void cpTag(TIFF *in , TIFF *out , uint16 tag , uint16 count ,
3640                   TIFFDataType type )   3640                   TIFFDataType type )
3641 {   3641 {
3642   uint16 shortv ;   3642   uint16 shortv ;
3643   int tmp ;   3643   int tmp ;
3644   uint16 shortv1 ;   3644   uint16 shortv1 ;
3645   uint16 shortv2 ;   3645   uint16 shortv2 ;
3646   int tmp___0 ;   3646   int tmp___0 ;
3647   uint16 *tr ;   3647   uint16 *tr ;
3648   uint16 *tg ;   3648   uint16 *tg ;
3649   uint16 *tb ;   3649   uint16 *tb ;
3650   uint16 *ta ;   3650   uint16 *ta ;
3651   int tmp___1 ;   3651   int tmp___1 ;
3652   uint16 shortv1___0 ;   3652   uint16 shortv1___0 ;
3653   uint16 *shortav ;   3653   uint16 *shortav ;
3654   int tmp___2 ;   3654   int tmp___2 ;
3655   uint32 longv ;   3655   uint32 longv ;
3656   int tmp___3 ;   3656   int tmp___3 ;
3657   float floatv ;   3657   float floatv ;
3658   int tmp___4 ;   3658   int tmp___4 ;
3659   float *floatav ;   3659   float *floatav ;
3660   int tmp___5 ;   3660   int tmp___5 ;
3661   char *stringv ;   3661   char *stringv ;
3662   int tmp___6 ;   3662   int tmp___6 ;
3663   double doublev ;   3663   double doublev ;
3664   int tmp___7 ;   3664   int tmp___7 ;
3665   double *doubleav ;   3665   double *doubleav ;
3666   int tmp___8 ;   3666   int tmp___8 ;
3667   char const   *tmp___9 ;   3667   char const   *tmp___9 ;
3668     3668  
3669   {   3669   {
3670   switch ((unsigned int )type) {   3670   switch ((unsigned int )type) {
3671   case 3U:   3671   case 3U:
3672   if ((int )count == 1) {   3672   if ((int )count == 1) {
3673     tmp = TIFFGetField(in, (ttag_t )tag, & shortv);   3673     tmp = TIFFGetField(in, (ttag_t )tag, & shortv);
3674     if (tmp) {   3674     if (tmp) {
3675       TIFFSetField(out, (ttag_t )tag, (int )shortv);   3675       TIFFSetField(out, (ttag_t )tag, (int )shortv);
3676     } else {   3676     } else {
3677     3677  
3678     }   3678     }
3679   } else   3679   } else
3680   if ((int )count == 2) {   3680   if ((int )count == 2) {
3681     tmp___0 = TIFFGetField(in, (ttag_t )tag, & shortv1, & shortv2);   3681     tmp___0 = TIFFGetField(in, (ttag_t )tag, & shortv1, & shortv2);
3682     if (tmp___0) {   3682     if (tmp___0) {
3683       TIFFSetField(out, (ttag_t )tag, (int )shortv1, (int )shortv2);   3683       TIFFSetField(out, (ttag_t )tag, (int )shortv1, (int )shortv2);
3684     } else {   3684     } else {
3685     3685  
3686     }   3686     }
3687   } else   3687   } else
3688   if ((int )count == 4) {   3688   if ((int )count == 4) {
3689     tmp___1 = TIFFGetField(in, (ttag_t )tag, & tr, & tg, & tb, & ta);   3689     tmp___1 = TIFFGetField(in, (ttag_t )tag, & tr, & tg, & tb, & ta);
3690     if (tmp___1) {   3690     if (tmp___1) {
3691       TIFFSetField(out, (ttag_t )tag, tr, tg, tb, ta);   3691       TIFFSetField(out, (ttag_t )tag, tr, tg, tb, ta);
3692     } else {   3692     } else {
3693     3693  
3694     }   3694     }
3695   } else   3695   } else
3696   if ((int )count == 65535) {   3696   if ((int )count == 65535) {
3697     tmp___2 = TIFFGetField(in, (ttag_t )tag, & shortv1___0, & shortav);   3697     tmp___2 = TIFFGetField(in, (ttag_t )tag, & shortv1___0, & shortav);
3698     if (tmp___2) {   3698     if (tmp___2) {
3699       TIFFSetField(out, (ttag_t )tag, (int )shortv1___0, shortav);   3699       TIFFSetField(out, (ttag_t )tag, (int )shortv1___0, shortav);
3700     } else {   3700     } else {
3701     3701  
3702     }   3702     }
3703   } else {   3703   } else {
3704     3704  
3705   }   3705   }
3706   break;   3706   break;
3707   case 4U:   3707   case 4U:
3708   tmp___3 = TIFFGetField(in, (ttag_t )tag, & longv);   3708   tmp___3 = TIFFGetField(in, (ttag_t )tag, & longv);
3709   if (tmp___3) {   3709   if (tmp___3) {
3710     TIFFSetField(out, (ttag_t )tag, longv);   3710     TIFFSetField(out, (ttag_t )tag, longv);
3711   } else {   3711   } else {
3712     3712  
3713   }   3713   }
3714   break;   3714   break;
3715   case 5U:   3715   case 5U:
3716   if ((int )count == 1) {   3716   if ((int )count == 1) {
3717     tmp___4 = TIFFGetField(in, (ttag_t )tag, & floatv);   3717     tmp___4 = TIFFGetField(in, (ttag_t )tag, & floatv);
3718     if (tmp___4) {   3718     if (tmp___4) {
3719       TIFFSetField(out, (ttag_t )tag, (double )floatv);   3719       TIFFSetField(out, (ttag_t )tag, (double )floatv);
3720     } else {   3720     } else {
3721     3721  
3722     }   3722     }
3723   } else   3723   } else
3724   if ((int )count == 65535) {   3724   if ((int )count == 65535) {
3725     tmp___5 = TIFFGetField(in, (ttag_t )tag, & floatav);   3725     tmp___5 = TIFFGetField(in, (ttag_t )tag, & floatav);
3726     if (tmp___5) {   3726     if (tmp___5) {
3727       TIFFSetField(out, (ttag_t )tag, floatav);   3727       TIFFSetField(out, (ttag_t )tag, floatav);
3728     } else {   3728     } else {
3729     3729  
3730     }   3730     }
3731   } else {   3731   } else {
3732     3732  
3733   }   3733   }
3734   break;   3734   break;
3735   case 2U:   3735   case 2U:
3736   tmp___6 = TIFFGetField(in, (ttag_t )tag, & stringv);   3736   tmp___6 = TIFFGetField(in, (ttag_t )tag, & stringv);
3737   if (tmp___6) {   3737   if (tmp___6) {
3738     TIFFSetField(out, (ttag_t )tag, stringv);   3738     TIFFSetField(out, (ttag_t )tag, stringv);
3739   } else {   3739   } else {
3740     3740  
3741   }   3741   }
3742   break;   3742   break;
3743   case 12U:   3743   case 12U:
3744   if ((int )count == 1) {   3744   if ((int )count == 1) {
3745     tmp___7 = TIFFGetField(in, (ttag_t )tag, & doublev);   3745     tmp___7 = TIFFGetField(in, (ttag_t )tag, & doublev);
3746     if (tmp___7) {   3746     if (tmp___7) {
3747       TIFFSetField(out, (ttag_t )tag, doublev);   3747       TIFFSetField(out, (ttag_t )tag, doublev);
3748     } else {   3748     } else {
3749     3749  
3750     }   3750     }
3751   } else   3751   } else
3752   if ((int )count == 65535) {   3752   if ((int )count == 65535) {
3753     tmp___8 = TIFFGetField(in, (ttag_t )tag, & doubleav);   3753     tmp___8 = TIFFGetField(in, (ttag_t )tag, & doubleav);
3754     if (tmp___8) {   3754     if (tmp___8) {
3755       TIFFSetField(out, (ttag_t )tag, doubleav);   3755       TIFFSetField(out, (ttag_t )tag, doubleav);
3756     } else {   3756     } else {
3757     3757  
3758     }   3758     }
3759   } else {   3759   } else {
3760     3760  
3761   }   3761   }
3762   break;   3762   break;
3763   default:   3763   default:
3764   tmp___9 = TIFFFileName(in);   3764   tmp___9 = TIFFFileName(in);
3765   TIFFError(tmp___9, "Data type %d is not supported, tag %d skipped.",   3765   TIFFError(tmp___9, "Data type %d is not supported, tag %d skipped.",
3766             (int )tag, (unsigned int )type);   3766             (int )tag, (unsigned int )type);
3767   }   3767   }
3768   return;   3768   return;
3769 }   3769 }
3770 }   3770 }
3771 static struct cpTag tags[33]  =   3771 static struct cpTag tags[33]  =
3772   {      {(uint16 )254, (uint16 )1, (TIFFDataType )4},   3772   {      {(uint16 )254, (uint16 )1, (TIFFDataType )4},
3773         {(uint16 )263, (uint16 )1, (TIFFDataType )3},   3773         {(uint16 )263, (uint16 )1, (TIFFDataType )3},
3774         {(uint16 )269, (uint16 )1, (TIFFDataType )2},   3774         {(uint16 )269, (uint16 )1, (TIFFDataType )2},
3775         {(uint16 )270, (uint16 )1, (TIFFDataType )2},   3775         {(uint16 )270, (uint16 )1, (TIFFDataType )2},
3776         {(uint16 )271, (uint16 )1, (TIFFDataType )2},   3776         {(uint16 )271, (uint16 )1, (TIFFDataType )2},
3777         {(uint16 )272, (uint16 )1, (TIFFDataType )2},   3777         {(uint16 )272, (uint16 )1, (TIFFDataType )2},
3778         {(uint16 )280, (uint16 )1, (TIFFDataType )3},   3778         {(uint16 )280, (uint16 )1, (TIFFDataType )3},
3779         {(uint16 )281, (uint16 )1, (TIFFDataType )3},   3779         {(uint16 )281, (uint16 )1, (TIFFDataType )3},
3780         {(uint16 )282, (uint16 )1, (TIFFDataType )5},   3780         {(uint16 )282, (uint16 )1, (TIFFDataType )5},
3781         {(uint16 )283, (uint16 )1, (TIFFDataType )5},   3781         {(uint16 )283, (uint16 )1, (TIFFDataType )5},
3782         {(uint16 )285, (uint16 )1, (TIFFDataType )2},   3782         {(uint16 )285, (uint16 )1, (TIFFDataType )2},
3783         {(uint16 )286, (uint16 )1, (TIFFDataType )5},   3783         {(uint16 )286, (uint16 )1, (TIFFDataType )5},
3784         {(uint16 )287, (uint16 )1, (TIFFDataType )5},   3784         {(uint16 )287, (uint16 )1, (TIFFDataType )5},
3785         {(uint16 )296, (uint16 )1, (TIFFDataType )3},   3785         {(uint16 )296, (uint16 )1, (TIFFDataType )3},
3786         {(uint16 )305, (uint16 )1, (TIFFDataType )2},   3786         {(uint16 )305, (uint16 )1, (TIFFDataType )2},
3787         {(uint16 )306, (uint16 )1, (TIFFDataType )2},   3787         {(uint16 )306, (uint16 )1, (TIFFDataType )2},
3788         {(uint16 )315, (uint16 )1, (TIFFDataType )2},   3788         {(uint16 )315, (uint16 )1, (TIFFDataType )2},
3789         {(uint16 )316, (uint16 )1, (TIFFDataType )2},   3789         {(uint16 )316, (uint16 )1, (TIFFDataType )2},
3790         {(uint16 )318, (uint16 )-1, (TIFFDataType )5},   3790         {(uint16 )318, (uint16 )-1, (TIFFDataType )5},
3791         {(uint16 )319, (uint16 )-1, (TIFFDataType )5},   3791         {(uint16 )319, (uint16 )-1, (TIFFDataType )5},
3792         {(uint16 )321, (uint16 )2, (TIFFDataType )3},   3792         {(uint16 )321, (uint16 )2, (TIFFDataType )3},
3793         {(uint16 )332, (uint16 )1, (TIFFDataType )3},   3793         {(uint16 )332, (uint16 )1, (TIFFDataType )3},
3794         {(uint16 )336, (uint16 )2, (TIFFDataType )3},   3794         {(uint16 )336, (uint16 )2, (TIFFDataType )3},
3795         {(uint16 )337, (uint16 )1, (TIFFDataType )2},   3795         {(uint16 )337, (uint16 )1, (TIFFDataType )2},
3796         {(uint16 )339, (uint16 )1, (TIFFDataType )3},   3796         {(uint16 )339, (uint16 )1, (TIFFDataType )3},
3797         {(uint16 )529, (uint16 )-1, (TIFFDataType )5},   3797         {(uint16 )529, (uint16 )-1, (TIFFDataType )5},
3798         {(uint16 )530, (uint16 )2, (TIFFDataType )3},   3798         {(uint16 )530, (uint16 )2, (TIFFDataType )3},
3799         {(uint16 )531, (uint16 )1, (TIFFDataType )3},   3799         {(uint16 )531, (uint16 )1, (TIFFDataType )3},
3800         {(uint16 )532, (uint16 )-1, (TIFFDataType )5},   3800         {(uint16 )532, (uint16 )-1, (TIFFDataType )5},
3801         {(uint16 )338, (uint16 )-1, (TIFFDataType )3},   3801         {(uint16 )338, (uint16 )-1, (TIFFDataType )3},
3802         {(uint16 )340, (uint16 )1, (TIFFDataType )12},   3802         {(uint16 )340, (uint16 )1, (TIFFDataType )12},
3803         {(uint16 )341, (uint16 )1, (TIFFDataType )12},   3803         {(uint16 )341, (uint16 )1, (TIFFDataType )12},
3804         {(uint16 )37439, (uint16 )1, (TIFFDataType )12}};   3804         {(uint16 )37439, (uint16 )1, (TIFFDataType )12}};
3805 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,   3805 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,
3806                              uint16 samplesperpixel ) ;   3806                              uint16 samplesperpixel ) ;
3807 static int tiffcp(TIFF *in , TIFF *out )   3807 static int tiffcp(TIFF *in , TIFF *out )
3808 {   3808 {
3809   uint16 bitspersample ;   3809   uint16 bitspersample ;
3810   uint16 samplesperpixel ;   3810   uint16 samplesperpixel ;
3811   int (*cf)(TIFF *in , TIFF *out , uint32 l , uint32 w , uint16 samplesperpixel ) ;   3811   int (*cf)(TIFF *in , TIFF *out , uint32 l , uint32 w , uint16 samplesperpixel ) ;
3812   uint32 width ;   3812   uint32 width ;
3813   uint32 length ;   3813   uint32 length ;
3814   struct cpTag *p ;   3814   struct cpTag *p ;
3815   int tmp ;   3815   int tmp ;
3816   int tmp___0 ;   3816   int tmp___0 ;
3817   int tmp___1 ;   3817   int tmp___1 ;
3818   int tmp___2 ;   3818   int tmp___2 ;
3819   int tmp___3 ;   3819   int tmp___3 ;
3820   uint16 input_compression ;   3820   uint16 input_compression ;
3821   uint16 input_photometric ;   3821   uint16 input_photometric ;
3822   int tmp___4 ;   3822   int tmp___4 ;
3823   int tmp___5 ;   3823   int tmp___5 ;
3824   int tmp___6 ;   3824   int tmp___6 ;
3825   char const   *tmp___7 ;   3825   char const   *tmp___7 ;
3826   char const   *tmp___8 ;   3826   char const   *tmp___8 ;
3827   int tmp___9 ;   3827   int tmp___9 ;
3828   int tmp___10 ;   3828   int tmp___10 ;
3829   int tmp___11 ;   3829   int tmp___11 ;
3830   int tmp___12 ;   3830   int tmp___12 ;
3831   uint32 len32 ;   3831   uint32 len32 ;
3832   void **data ;   3832   void **data ;
3833   int tmp___13 ;   3833   int tmp___13 ;
3834   uint16 ninks ;   3834   uint16 ninks ;
3835   char const   *inknames ;   3835   char const   *inknames ;
3836   int inknameslen ;   3836   int inknameslen ;
3837   size_t tmp___14 ;   3837   size_t tmp___14 ;
3838   char const   *cp ;   3838   char const   *cp ;
3839   void *tmp___15 ;   3839   void *tmp___15 ;
3840   char *tmp___16 ;   3840   char *tmp___16 ;
3841   size_t tmp___17 ;   3841   size_t tmp___17 ;
3842   int tmp___18 ;   3842   int tmp___18 ;
3843   int tmp___19 ;   3843   int tmp___19 ;
3844   unsigned short pg0 ;   3844   unsigned short pg0 ;
3845   unsigned short pg1 ;   3845   unsigned short pg1 ;
3846   int tmp___20 ;   3846   int tmp___20 ;
3847   int tmp___21 ;   3847   int tmp___21 ;
3848   int tmp___22 ;   3848   int tmp___22 ;
3849   int tmp___23 ;   3849   int tmp___23 ;
3850     3850  
3851   {   3851   {
3852   tmp = TIFFGetField(in, (ttag_t )256, & width);   3852   tmp = TIFFGetField(in, (ttag_t )256, & width);
3853   if (tmp) {   3853   if (tmp) {
3854     TIFFSetField(out, (ttag_t )256, width);   3854     TIFFSetField(out, (ttag_t )256, width);
3855   } else {   3855   } else {
3856     3856  
3857   }   3857   }
3858   tmp___0 = TIFFGetField(in, (ttag_t )257, & length);   3858   tmp___0 = TIFFGetField(in, (ttag_t )257, & length);
3859   if (tmp___0) {   3859   if (tmp___0) {
3860     TIFFSetField(out, (ttag_t )257, length);   3860     TIFFSetField(out, (ttag_t )257, length);
3861   } else {   3861   } else {
3862     3862  
3863   }   3863   }
3864   tmp___1 = TIFFGetField(in, (ttag_t )258, & bitspersample);   3864   tmp___1 = TIFFGetField(in, (ttag_t )258, & bitspersample);
3865   if (tmp___1) {   3865   if (tmp___1) {
3866     TIFFSetField(out, (ttag_t )258, (int )bitspersample);   3866     TIFFSetField(out, (ttag_t )258, (int )bitspersample);
3867   } else {   3867   } else {
3868     3868  
3869   }   3869   }
3870   tmp___2 = TIFFGetField(in, (ttag_t )277, & samplesperpixel);   3870   tmp___2 = TIFFGetField(in, (ttag_t )277, & samplesperpixel);
3871   if (tmp___2) {   3871   if (tmp___2) {
3872     TIFFSetField(out, (ttag_t )277, (int )samplesperpixel);   3872     TIFFSetField(out, (ttag_t )277, (int )samplesperpixel);
3873   } else {   3873   } else {
3874     3874  
3875   }   3875   }
3876   if ((int )compression != 65535) {   3876   if ((int )compression != 65535) {
3877     TIFFSetField(out, (ttag_t )259, (int )compression);   3877     TIFFSetField(out, (ttag_t )259, (int )compression);
3878   } else {   3878   } else {
3879     tmp___3 = TIFFGetField(in, (ttag_t )259, & compression);   3879     tmp___3 = TIFFGetField(in, (ttag_t )259, & compression);
3880     if (tmp___3) {   3880     if (tmp___3) {
3881       TIFFSetField(out, (ttag_t )259, (int )compression);   3881       TIFFSetField(out, (ttag_t )259, (int )compression);
3882     } else {   3882     } else {
3883     3883  
3884     }   3884     }
3885   }   3885   }
3886   if ((int )compression == 7) {   3886   if ((int )compression == 7) {
3887     tmp___4 = TIFFGetField(in, (ttag_t )259, & input_compression);   3887     tmp___4 = TIFFGetField(in, (ttag_t )259, & input_compression);
3888     if (tmp___4) {   3888     if (tmp___4) {
3889       if ((int )input_compression == 7) {   3889       if ((int )input_compression == 7) {
3890         TIFFSetField(in, (ttag_t )65538, 1);   3890         TIFFSetField(in, (ttag_t )65538, 1);
3891       } else {   3891       } else {
3892     3892  
3893       }   3893       }
3894     } else {   3894     } else {
3895     3895  
3896     }   3896     }
3897     tmp___5 = TIFFGetField(in, (ttag_t )262, & input_photometric);   3897     tmp___5 = TIFFGetField(in, (ttag_t )262, & input_photometric);
3898     if (tmp___5) {   3898     if (tmp___5) {
3899       if ((int )input_photometric == 2) { <> 3899       if (in != 0) {
3900         if (jpegcolormode == 1) { = 3900         if (jpegcolormode == 1) {
3901           TIFFSetField(out, (ttag_t )262, 6);   3901           TIFFSetField(out, (ttag_t )262, 6);
3902         } else {   3902         } else {
3903           TIFFSetField(out, (ttag_t )262, 2);   3903           TIFFSetField(out, (ttag_t )262, 2);
3904         }   3904         }
3905       } else {   3905       } else {
3906         TIFFSetField(out, (ttag_t )262, (int )input_photometric);   3906         TIFFSetField(out, (ttag_t )262, (int )input_photometric);
3907       }   3907       }
3908     } else {   3908     } else {
3909     3909  
3910     }   3910     }
3911   } else   3911   } else
3912   if ((int )compression == 34676) {   3912   if ((int )compression == 34676) {
3913     goto _L;   3913     goto _L;
3914   } else   3914   } else
3915   if ((int )compression == 34677) {   3915   if ((int )compression == 34677) {
3916     _L: /* CIL Label */   3916     _L: /* CIL Label */
3917     if ((int )samplesperpixel == 1) {   3917     if ((int )samplesperpixel == 1) {
3918       tmp___6 = 32844;   3918       tmp___6 = 32844;
3919     } else {   3919     } else {
3920       tmp___6 = 32845;   3920       tmp___6 = 32845;
3921     }   3921     }
3922     TIFFSetField(out, (ttag_t )262, tmp___6);   3922     TIFFSetField(out, (ttag_t )262, tmp___6);
3923   } else {   3923   } else {
3924     cpTag(in, out, (uint16 )262, (uint16 )1, (TIFFDataType )3);   3924     cpTag(in, out, (uint16 )262, (uint16 )1, (TIFFDataType )3);
3925   }   3925   }
3926   if ((int )fillorder != 0) {   3926   if ((int )fillorder != 0) {
3927     TIFFSetField(out, (ttag_t )266, (int )fillorder);   3927     TIFFSetField(out, (ttag_t )266, (int )fillorder);
3928   } else {   3928   } else {
3929     cpTag(in, out, (uint16 )266, (uint16 )1, (TIFFDataType )3);   3929     cpTag(in, out, (uint16 )266, (uint16 )1, (TIFFDataType )3);
3930   }   3930   }
3931   TIFFGetFieldDefaulted(in, (ttag_t )274, & orientation);   3931   TIFFGetFieldDefaulted(in, (ttag_t )274, & orientation);
3932   switch ((int )orientation) {   3932   switch ((int )orientation) {
3933   case 7:   3933   case 7:
3934   case 3:   3934   case 3:
3935   tmp___7 = TIFFFileName(in);   3935   tmp___7 = TIFFFileName(in);
3936   TIFFWarning(tmp___7, "using bottom-left orientation");   3936   TIFFWarning(tmp___7, "using bottom-left orientation");
3937   orientation = (uint16 )4;   3937   orientation = (uint16 )4;
3938   case 4:   3938   case 4:
3939   case 8:   3939   case 8:
3940   break;   3940   break;
3941   default:   3941   default:
3942   case 6:   3942   case 6:
3943   case 2:   3943   case 2:
3944   tmp___8 = TIFFFileName(in);   3944   tmp___8 = TIFFFileName(in);
3945   TIFFWarning(tmp___8, "using top-left orientation");   3945   TIFFWarning(tmp___8, "using top-left orientation");
3946   orientation = (uint16 )1;   3946   orientation = (uint16 )1;
3947   case 1:   3947   case 1:
3948   case 5:   3948   case 5:
3949   break;   3949   break;
3950   }   3950   }
3951   TIFFSetField(out, (ttag_t )274, (int )orientation);   3951   TIFFSetField(out, (ttag_t )274, (int )orientation);
3952   if (outtiled == -1) {   3952   if (outtiled == -1) {
3953     outtiled = TIFFIsTiled(in);   3953     outtiled = TIFFIsTiled(in);
3954   } else {   3954   } else {
3955     3955  
3956   }   3956   }
3957   if (outtiled) {   3957   if (outtiled) {
3958     if (tilewidth == 4294967295U) {   3958     if (tilewidth == 4294967295U) {
3959       TIFFGetField(in, (ttag_t )322, & tilewidth);   3959       TIFFGetField(in, (ttag_t )322, & tilewidth);
3960     } else {   3960     } else {
3961     3961  
3962     }   3962     }
3963     if (tilelength == 4294967295U) {   3963     if (tilelength == 4294967295U) {
3964       TIFFGetField(in, (ttag_t )323, & tilelength);   3964       TIFFGetField(in, (ttag_t )323, & tilelength);
3965     } else {   3965     } else {
3966     3966  
3967     }   3967     }
3968     TIFFDefaultTileSize(out, & tilewidth, & tilelength);   3968     TIFFDefaultTileSize(out, & tilewidth, & tilelength);
3969     TIFFSetField(out, (ttag_t )322, tilewidth);   3969     TIFFSetField(out, (ttag_t )322, tilewidth);
3970     TIFFSetField(out, (ttag_t )323, tilelength);   3970     TIFFSetField(out, (ttag_t )323, tilelength);
3971   } else {   3971   } else {
3972     if (rowsperstrip == 0U) {   3972     if (rowsperstrip == 0U) {
3973       tmp___9 = TIFFGetField(in, (ttag_t )278, & rowsperstrip);   3973       tmp___9 = TIFFGetField(in, (ttag_t )278, & rowsperstrip);
3974       if (tmp___9) {   3974       if (tmp___9) {
3975     3975  
3976       } else {   3976       } else {
3977         rowsperstrip = TIFFDefaultStripSize(out, rowsperstrip);   3977         rowsperstrip = TIFFDefaultStripSize(out, rowsperstrip);
3978       }   3978       }
3979     } else   3979     } else
3980     if (rowsperstrip == 4294967295U) {   3980     if (rowsperstrip == 4294967295U) {
3981       rowsperstrip = length;   3981       rowsperstrip = length;
3982     } else {   3982     } else {
3983     3983  
3984     }   3984     }
3985     TIFFSetField(out, (ttag_t )278, rowsperstrip);   3985     TIFFSetField(out, (ttag_t )278, rowsperstrip);
3986   }   3986   }
3987   if ((int )config != 65535) {   3987   if ((int )config != 65535) {
3988     TIFFSetField(out, (ttag_t )284, (int )config);   3988     TIFFSetField(out, (ttag_t )284, (int )config);
3989   } else {   3989   } else {
3990     tmp___10 = TIFFGetField(in, (ttag_t )284, & config);   3990     tmp___10 = TIFFGetField(in, (ttag_t )284, & config);
3991     if (tmp___10) {   3991     if (tmp___10) {
3992       TIFFSetField(out, (ttag_t )284, (int )config);   3992       TIFFSetField(out, (ttag_t )284, (int )config);
3993     } else {   3993     } else {
3994     3994  
3995     }   3995     }
3996   }   3996   }
3997   if ((int )samplesperpixel <= 4) {   3997   if ((int )samplesperpixel <= 4) {
3998     cpTag(in, out, (uint16 )301, (uint16 )4, (TIFFDataType )3);   3998     cpTag(in, out, (uint16 )301, (uint16 )4, (TIFFDataType )3);
3999   } else {   3999   } else {
4000     4000  
4001   }   4001   }
4002   cpTag(in, out, (uint16 )320, (uint16 )4, (TIFFDataType )3);   4002   cpTag(in, out, (uint16 )320, (uint16 )4, (TIFFDataType )3);
4003   switch ((int )compression) {   4003   switch ((int )compression) {
4004   case 7:   4004   case 7:
4005   TIFFSetField(out, (ttag_t )65537, quality);   4005   TIFFSetField(out, (ttag_t )65537, quality);
4006   TIFFSetField(out, (ttag_t )65538, jpegcolormode);   4006   TIFFSetField(out, (ttag_t )65538, jpegcolormode);
4007   break;   4007   break;
4008   case 32946:   4008   case 32946:
4009   case 8:   4009   case 8:
4010   case 5:   4010   case 5:
4011   if ((int )predictor != 65535) {   4011   if ((int )predictor != 65535) {
4012     TIFFSetField(out, (ttag_t )317, (int )predictor);   4012     TIFFSetField(out, (ttag_t )317, (int )predictor);
4013   } else {   4013   } else {
4014     tmp___11 = TIFFGetField(in, (ttag_t )317, & predictor);   4014     tmp___11 = TIFFGetField(in, (ttag_t )317, & predictor);
4015     if (tmp___11) {   4015     if (tmp___11) {
4016       TIFFSetField(out, (ttag_t )317, (int )predictor);   4016       TIFFSetField(out, (ttag_t )317, (int )predictor);
4017     } else {   4017     } else {
4018     4018  
4019     }   4019     }
4020   }   4020   }
4021   break;   4021   break;
4022   case 4:   4022   case 4:
4023   case 3:   4023   case 3:
4024   if ((int )compression == 3) {   4024   if ((int )compression == 3) {
4025     if (g3opts != 4294967295U) {   4025     if (g3opts != 4294967295U) {
4026       TIFFSetField(out, (ttag_t )292, g3opts);   4026       TIFFSetField(out, (ttag_t )292, g3opts);
4027     } else {   4027     } else {
4028       tmp___12 = TIFFGetField(in, (ttag_t )292, & g3opts);   4028       tmp___12 = TIFFGetField(in, (ttag_t )292, & g3opts);
4029       if (tmp___12) {   4029       if (tmp___12) {
4030         TIFFSetField(out, (ttag_t )292, g3opts);   4030         TIFFSetField(out, (ttag_t )292, g3opts);
4031       } else {   4031       } else {
4032     4032  
4033       }   4033       }
4034     }   4034     }
4035   } else {   4035   } else {
4036     cpTag(in, out, (uint16 )293, (uint16 )1, (TIFFDataType )4);   4036     cpTag(in, out, (uint16 )293, (uint16 )1, (TIFFDataType )4);
4037   }   4037   }
4038   cpTag(in, out, (uint16 )326, (uint16 )1, (TIFFDataType )4);   4038   cpTag(in, out, (uint16 )326, (uint16 )1, (TIFFDataType )4);
4039   cpTag(in, out, (uint16 )327, (uint16 )1, (TIFFDataType )4);   4039   cpTag(in, out, (uint16 )327, (uint16 )1, (TIFFDataType )4);
4040   cpTag(in, out, (uint16 )328, (uint16 )1, (TIFFDataType )4);   4040   cpTag(in, out, (uint16 )328, (uint16 )1, (TIFFDataType )4);
4041   cpTag(in, out, (uint16 )34908, (uint16 )1, (TIFFDataType )4);   4041   cpTag(in, out, (uint16 )34908, (uint16 )1, (TIFFDataType )4);
4042   cpTag(in, out, (uint16 )34910, (uint16 )1, (TIFFDataType )4);   4042   cpTag(in, out, (uint16 )34910, (uint16 )1, (TIFFDataType )4);
4043   cpTag(in, out, (uint16 )34909, (uint16 )1, (TIFFDataType )2);   4043   cpTag(in, out, (uint16 )34909, (uint16 )1, (TIFFDataType )2);
4044   break;   4044   break;
4045   }   4045   }
4046   tmp___13 = TIFFGetField(in, (ttag_t )34675, & len32, & data);   4046   tmp___13 = TIFFGetField(in, (ttag_t )34675, & len32, & data);
4047   if (tmp___13) {   4047   if (tmp___13) {
4048     TIFFSetField(out, (ttag_t )34675, len32, data);   4048     TIFFSetField(out, (ttag_t )34675, len32, data);
4049   } else {   4049   } else {
4050     4050  
4051   }   4051   }
4052   tmp___19 = TIFFGetField(in, (ttag_t )334, & ninks);   4052   tmp___19 = TIFFGetField(in, (ttag_t )334, & ninks);
4053   if (tmp___19) {   4053   if (tmp___19) {
4054     TIFFSetField(out, (ttag_t )334, (int )ninks);   4054     TIFFSetField(out, (ttag_t )334, (int )ninks);
4055     tmp___18 = TIFFGetField(in, (ttag_t )333, & inknames);   4055     tmp___18 = TIFFGetField(in, (ttag_t )333, & inknames);
4056     if (tmp___18) {   4056     if (tmp___18) {
4057       tmp___14 = strlen(inknames);   4057       tmp___14 = strlen(inknames);
4058       inknameslen = (int )(tmp___14 + 1U);   4058       inknameslen = (int )(tmp___14 + 1U);
4059       cp = inknames;   4059       cp = inknames;
4060       while ((int )ninks > 1) {   4060       while ((int )ninks > 1) {
4061         tmp___15 = __rawmemchr((void const   *)cp, '\000');   4061         tmp___15 = __rawmemchr((void const   *)cp, '\000');
4062         cp = (char const   *)((char *)tmp___15);   4062         cp = (char const   *)((char *)tmp___15);
4063         if (cp) {   4063         if (cp) {
4064           cp ++;   4064           cp ++;
4065           tmp___17 = strlen(cp);   4065           tmp___17 = strlen(cp);
4066           inknameslen = (int )((size_t )inknameslen + (tmp___17 + 1U));   4066           inknameslen = (int )((size_t )inknameslen + (tmp___17 + 1U));
4067         } else {   4067         } else {
4068     4068  
4069         }   4069         }
4070         ninks = (uint16 )((int )ninks - 1);   4070         ninks = (uint16 )((int )ninks - 1);
4071       }   4071       }
4072       TIFFSetField(out, (ttag_t )333, inknameslen, inknames);   4072       TIFFSetField(out, (ttag_t )333, inknameslen, inknames);
4073     } else {   4073     } else {
4074     4074  
4075     }   4075     }
4076   } else {   4076   } else {
4077     4077  
4078   }   4078   }
4079   tmp___21 = TIFFGetField(in, (ttag_t )297, & pg0, & pg1);   4079   tmp___21 = TIFFGetField(in, (ttag_t )297, & pg0, & pg1);
4080   if (tmp___21) {   4080   if (tmp___21) {
4081     if (pageNum < 0) {   4081     if (pageNum < 0) {
4082       TIFFSetField(out, (ttag_t )297, (int )pg0, (int )pg1);   4082       TIFFSetField(out, (ttag_t )297, (int )pg0, (int )pg1);
4083     } else {   4083     } else {
4084       tmp___20 = pageNum;   4084       tmp___20 = pageNum;
4085       pageNum ++;   4085       pageNum ++;
4086       TIFFSetField(out, (ttag_t )297, tmp___20, 0);   4086       TIFFSetField(out, (ttag_t )297, tmp___20, 0);
4087     }   4087     }
4088   } else {   4088   } else {
4089     4089  
4090   }   4090   }
4091   p = tags;   4091   p = tags;
4092   while ((unsigned int )p < (unsigned int )(& tags[sizeof(tags) / sizeof(tags[0])])) {   4092   while ((unsigned int )p < (unsigned int )(& tags[sizeof(tags) / sizeof(tags[0])])) {
4093     cpTag(in, out, p->tag, p->count, p->type);   4093     cpTag(in, out, p->tag, p->count, p->type);
4094     p ++;   4094     p ++;
4095   }   4095   }
4096   cf = pickCopyFunc(in, out, bitspersample, samplesperpixel);   4096   cf = pickCopyFunc(in, out, bitspersample, samplesperpixel);
4097   if (cf) {   4097   if (cf) {
4098     tmp___22 = (*cf)(in, out, length, width, samplesperpixel);   4098     tmp___22 = (*cf)(in, out, length, width, samplesperpixel);
4099     tmp___23 = tmp___22;   4099     tmp___23 = tmp___22;
4100   } else {   4100   } else {
4101     tmp___23 = 0;   4101     tmp___23 = 0;
4102   }   4102   }
4103   return (tmp___23);   4103   return (tmp___23);
4104 }   4104 }
4105 }   4105 }
4106 static int cpContig2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4106 static int cpContig2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4107                                 uint32 imagewidth , tsample_t spp )   4107                                 uint32 imagewidth , tsample_t spp )
4108 {   4108 {
4109   tdata_t buf ;   4109   tdata_t buf ;
4110   tsize_t tmp ;   4110   tsize_t tmp ;
4111   tdata_t tmp___0 ;   4111   tdata_t tmp___0 ;
4112   uint32 row ;   4112   uint32 row ;
4113   int tmp___1 ;   4113   int tmp___1 ;
4114   int tmp___2 ;   4114   int tmp___2 ;
4115     4115  
4116   {   4116   {
4117   tmp = TIFFScanlineSize(in);   4117   tmp = TIFFScanlineSize(in);
4118   tmp___0 = _TIFFmalloc(tmp);   4118   tmp___0 = _TIFFmalloc(tmp);
4119   buf = tmp___0;   4119   buf = tmp___0;
4120   row = (uint32 )0;   4120   row = (uint32 )0;
4121   while (row < imagelength) {   4121   while (row < imagelength) {
4122     tmp___1 = TIFFReadScanline(in, buf, row, (tsample_t )0);   4122     tmp___1 = TIFFReadScanline(in, buf, row, (tsample_t )0);
4123     if (tmp___1 < 0) {   4123     if (tmp___1 < 0) {
4124       if (! ignore) {   4124       if (! ignore) {
4125         goto bad;   4125         goto bad;
4126       } else {   4126       } else {
4127     4127  
4128       }   4128       }
4129     } else {   4129     } else {
4130     4130  
4131     }   4131     }
4132     tmp___2 = TIFFWriteScanline(out, buf, row, (tsample_t )0);   4132     tmp___2 = TIFFWriteScanline(out, buf, row, (tsample_t )0);
4133     if (tmp___2 < 0) {   4133     if (tmp___2 < 0) {
4134       goto bad;   4134       goto bad;
4135     } else {   4135     } else {
4136     4136  
4137     }   4137     }
4138     row ++;   4138     row ++;
4139   }   4139   }
4140   _TIFFfree(buf);   4140   _TIFFfree(buf);
4141   return (1);   4141   return (1);
4142   bad:   4142   bad:
4143   _TIFFfree(buf);   4143   _TIFFfree(buf);
4144   return (0);   4144   return (0);
4145 }   4145 }
4146 }   4146 }
4147 static void subtract8(void *i , void *b , uint32 pixels )   4147 static void subtract8(void *i , void *b , uint32 pixels )
4148 {   4148 {
4149   uint8 *image ;   4149   uint8 *image ;
4150   uint8 *bias___0 ;   4150   uint8 *bias___0 ;
4151   uint32 tmp ;   4151   uint32 tmp ;
4152     4152  
4153   {   4153   {
4154   image = (uint8 *)i;   4154   image = (uint8 *)i;
4155   bias___0 = (uint8 *)b;   4155   bias___0 = (uint8 *)b;
4156   while (1) {   4156   while (1) {
4157     tmp = pixels;   4157     tmp = pixels;
4158     pixels --;   4158     pixels --;
4159     if (tmp) {   4159     if (tmp) {
4160     4160  
4161     } else {   4161     } else {
4162       break;   4162       break;
4163     }   4163     }
4164     if ((int )*image > (int )*bias___0) {   4164     if ((int )*image > (int )*bias___0) {
4165       *image = (uint8 )((int )*image - (int )*bias___0);   4165       *image = (uint8 )((int )*image - (int )*bias___0);
4166     } else {   4166     } else {
4167       *image = (uint8 )0;   4167       *image = (uint8 )0;
4168     }   4168     }
4169     image ++;   4169     image ++;
4170     bias___0 ++;   4170     bias___0 ++;
4171   }   4171   }
4172   return;   4172   return;
4173 }   4173 }
4174 }   4174 }
4175 static void subtract16(void *i , void *b , uint32 pixels )   4175 static void subtract16(void *i , void *b , uint32 pixels )
4176 {   4176 {
4177   uint16 *image ;   4177   uint16 *image ;
4178   uint16 *bias___0 ;   4178   uint16 *bias___0 ;
4179   uint32 tmp ;   4179   uint32 tmp ;
4180     4180  
4181   {   4181   {
4182   image = (uint16 *)i;   4182   image = (uint16 *)i;
4183   bias___0 = (uint16 *)b;   4183   bias___0 = (uint16 *)b;
4184   while (1) {   4184   while (1) {
4185     tmp = pixels;   4185     tmp = pixels;
4186     pixels --;   4186     pixels --;
4187     if (tmp) {   4187     if (tmp) {
4188     4188  
4189     } else {   4189     } else {
4190       break;   4190       break;
4191     }   4191     }
4192     if ((int )*image > (int )*bias___0) {   4192     if ((int )*image > (int )*bias___0) {
4193       *image = (uint16 )((int )*image - (int )*bias___0);   4193       *image = (uint16 )((int )*image - (int )*bias___0);
4194     } else {   4194     } else {
4195       *image = (uint16 )0;   4195       *image = (uint16 )0;
4196     }   4196     }
4197     image ++;   4197     image ++;
4198     bias___0 ++;   4198     bias___0 ++;
4199   }   4199   }
4200   return;   4200   return;
4201 }   4201 }
4202 }   4202 }
4203 static void subtract32(void *i , void *b , uint32 pixels )   4203 static void subtract32(void *i , void *b , uint32 pixels )
4204 {   4204 {
4205   uint32 *image ;   4205   uint32 *image ;
4206   uint32 *bias___0 ;   4206   uint32 *bias___0 ;
4207   uint32 tmp ;   4207   uint32 tmp ;
4208     4208  
4209   {   4209   {
4210   image = (uint32 *)i;   4210   image = (uint32 *)i;
4211   bias___0 = (uint32 *)b;   4211   bias___0 = (uint32 *)b;
4212   while (1) {   4212   while (1) {
4213     tmp = pixels;   4213     tmp = pixels;
4214     pixels --;   4214     pixels --;
4215     if (tmp) {   4215     if (tmp) {
4216     4216  
4217     } else {   4217     } else {
4218       break;   4218       break;
4219     }   4219     }
4220     if (*image > *bias___0) {   4220     if (*image > *bias___0) {
4221       *image -= *bias___0;   4221       *image -= *bias___0;
4222     } else {   4222     } else {
4223       *image = (uint32 )0;   4223       *image = (uint32 )0;
4224     }   4224     }
4225     image ++;   4225     image ++;
4226     bias___0 ++;   4226     bias___0 ++;
4227   }   4227   }
4228   return;   4228   return;
4229 }   4229 }
4230 }   4230 }
4231 static biasFn *lineSubtractFn(unsigned int bits )   4231 static biasFn *lineSubtractFn(unsigned int bits )
4232 {   4232 {
4233     4233  
4234     4234  
4235   {   4235   {
4236   switch (bits) {   4236   switch (bits) {
4237   case 8U:   4237   case 8U:
4238   return (& subtract8);   4238   return (& subtract8);
4239   case 16U:   4239   case 16U:
4240   return (& subtract16);   4240   return (& subtract16);
4241   case 32U:   4241   case 32U:
4242   return (& subtract32);   4242   return (& subtract32);
4243   }   4243   }
4244   return ((biasFn *)((void *)0));   4244   return ((biasFn *)((void *)0));
4245 }   4245 }
4246 }   4246 }
4247 static int cpBiasedContig2Contig(TIFF *in , TIFF *out , uint32 imagelength ,   4247 static int cpBiasedContig2Contig(TIFF *in , TIFF *out , uint32 imagelength ,
4248                                  uint32 imagewidth , tsample_t spp )   4248                                  uint32 imagewidth , tsample_t spp )
4249 {   4249 {
4250   tsize_t biasSize ;   4250   tsize_t biasSize ;
4251   tsize_t tmp ;   4251   tsize_t tmp ;
4252   tsize_t bufSize ;   4252   tsize_t bufSize ;
4253   tsize_t tmp___0 ;   4253   tsize_t tmp___0 ;
4254   tdata_t buf ;   4254   tdata_t buf ;
4255   tdata_t biasBuf ;   4255   tdata_t biasBuf ;
4256   uint32 biasWidth ;   4256   uint32 biasWidth ;
4257   uint32 biasLength ;   4257   uint32 biasLength ;
4258   uint16 sampleBits ;   4258   uint16 sampleBits ;
4259   biasFn *subtractLine ;   4259   biasFn *subtractLine ;
4260   uint32 row ;   4260   uint32 row ;
4261   int tmp___1 ;   4261   int tmp___1 ;
4262   int tmp___2 ;   4262   int tmp___2 ;
4263   int tmp___3 ;   4263   int tmp___3 ;
4264   tdir_t tmp___4 ;   4264   tdir_t tmp___4 ;
4265   tdir_t tmp___5 ;   4265   tdir_t tmp___5 ;
4266   char const   *tmp___6 ;   4266   char const   *tmp___6 ;
4267   tdir_t tmp___7 ;   4267   tdir_t tmp___7 ;
4268   char const   *tmp___8 ;   4268   char const   *tmp___8 ;
4269   tdir_t tmp___9 ;   4269   tdir_t tmp___9 ;
4270   char const   *tmp___10 ;   4270   char const   *tmp___10 ;
4271     4271  
4272   {   4272   {
4273   if ((int )spp == 1) {   4273   if ((int )spp == 1) {
4274     tmp = TIFFScanlineSize(bias);   4274     tmp = TIFFScanlineSize(bias);
4275     biasSize = tmp;   4275     biasSize = tmp;
4276     tmp___0 = TIFFScanlineSize(in);   4276     tmp___0 = TIFFScanlineSize(in);
4277     bufSize = tmp___0;   4277     bufSize = tmp___0;
4278     biasWidth = (uint32 )0;   4278     biasWidth = (uint32 )0;
4279     biasLength = (uint32 )0;   4279     biasLength = (uint32 )0;
4280     TIFFGetField(bias, (ttag_t )256, & biasWidth);   4280     TIFFGetField(bias, (ttag_t )256, & biasWidth);
4281     TIFFGetField(bias, (ttag_t )257, & biasLength);   4281     TIFFGetField(bias, (ttag_t )257, & biasLength);
4282     if (biasSize == bufSize) {   4282     if (biasSize == bufSize) {
4283       if (imagelength == biasLength) {   4283       if (imagelength == biasLength) {
4284         if (imagewidth == biasWidth) {   4284         if (imagewidth == biasWidth) {
4285           sampleBits = (uint16 )0;   4285           sampleBits = (uint16 )0;
4286           TIFFGetField(in, (ttag_t )258, & sampleBits);   4286           TIFFGetField(in, (ttag_t )258, & sampleBits);
4287           subtractLine = lineSubtractFn((unsigned int )sampleBits);   4287           subtractLine = lineSubtractFn((unsigned int )sampleBits);
4288           if (subtractLine) {   4288           if (subtractLine) {
4289             buf = _TIFFmalloc(bufSize);   4289             buf = _TIFFmalloc(bufSize);
4290             biasBuf = _TIFFmalloc(bufSize);   4290             biasBuf = _TIFFmalloc(bufSize);
4291             row = (uint32 )0;   4291             row = (uint32 )0;
4292             while (row < imagelength) {   4292             while (row < imagelength) {
4293               tmp___1 = TIFFReadScanline(in, buf, row, (tsample_t )0);   4293               tmp___1 = TIFFReadScanline(in, buf, row, (tsample_t )0);
4294               if (tmp___1 < 0) {   4294               if (tmp___1 < 0) {
4295                 if (! ignore) {   4295                 if (! ignore) {
4296                   goto bad;   4296                   goto bad;
4297                 } else {   4297                 } else {
4298     4298  
4299                 }   4299                 }
4300               } else {   4300               } else {
4301     4301  
4302               }   4302               }
4303               tmp___2 = TIFFReadScanline(bias, biasBuf, row, (tsample_t )0);   4303               tmp___2 = TIFFReadScanline(bias, biasBuf, row, (tsample_t )0);
4304               if (tmp___2 < 0) {   4304               if (tmp___2 < 0) {
4305                 if (! ignore) {   4305                 if (! ignore) {
4306                   goto bad;   4306                   goto bad;
4307                 } else {   4307                 } else {
4308     4308  
4309                 }   4309                 }
4310               } else {   4310               } else {
4311     4311  
4312               }   4312               }
4313               (*subtractLine)(buf, biasBuf, imagewidth);   4313               (*subtractLine)(buf, biasBuf, imagewidth);
4314               tmp___3 = TIFFWriteScanline(out, buf, row, (tsample_t )0);   4314               tmp___3 = TIFFWriteScanline(out, buf, row, (tsample_t )0);
4315               if (tmp___3 < 0) {   4315               if (tmp___3 < 0) {
4316                 goto bad;   4316                 goto bad;
4317               } else {   4317               } else {
4318     4318  
4319               }   4319               }
4320               row ++;   4320               row ++;
4321             }   4321             }
4322             _TIFFfree(buf);   4322             _TIFFfree(buf);
4323             _TIFFfree(biasBuf);   4323             _TIFFfree(biasBuf);
4324             tmp___4 = TIFFCurrentDirectory(bias);   4324             tmp___4 = TIFFCurrentDirectory(bias);
4325             TIFFSetDirectory(bias, tmp___4);   4325             TIFFSetDirectory(bias, tmp___4);
4326             return (1);   4326             return (1);
4327             bad:   4327             bad:
4328             _TIFFfree(buf);   4328             _TIFFfree(buf);
4329             _TIFFfree(biasBuf);   4329             _TIFFfree(biasBuf);
4330             return (0);   4330             return (0);
4331           } else {   4331           } else {
4332             fprintf((FILE */* __restrict  */)stderr,   4332             fprintf((FILE */* __restrict  */)stderr,
4333                     (char const   */* __restrict  */)"No support for biasing %d bit pixels\n",   4333                     (char const   */* __restrict  */)"No support for biasing %d bit pixels\n",
4334                     (int )sampleBits);   4334                     (int )sampleBits);
4335             return (0);   4335             return (0);
4336           }   4336           }
4337         } else {   4337         } else {
4338     4338  
4339         }   4339         }
4340       } else {   4340       } else {
4341     4341  
4342       }   4342       }
4343     } else {   4343     } else {
4344     4344  
4345     }   4345     }
4346     tmp___5 = TIFFCurrentDirectory(in);   4346     tmp___5 = TIFFCurrentDirectory(in);
4347     tmp___6 = TIFFFileName(in);   4347     tmp___6 = TIFFFileName(in);
4348     tmp___7 = TIFFCurrentDirectory(bias);   4348     tmp___7 = TIFFCurrentDirectory(bias);
4349     tmp___8 = TIFFFileName(bias);   4349     tmp___8 = TIFFFileName(bias);
4350     fprintf((FILE */* __restrict  */)stderr,   4350     fprintf((FILE */* __restrict  */)stderr,
4351             (char const   */* __restrict  */)"Bias image %s,%d\nis not the same size as %s,%d\n",   4351             (char const   */* __restrict  */)"Bias image %s,%d\nis not the same size as %s,%d\n",
4352             tmp___8, (int )tmp___7, tmp___6, (int )tmp___5);   4352             tmp___8, (int )tmp___7, tmp___6, (int )tmp___5);
4353     return (0);   4353     return (0);
4354   } else {   4354   } else {
4355     tmp___9 = TIFFCurrentDirectory(in);   4355     tmp___9 = TIFFCurrentDirectory(in);
4356     tmp___10 = TIFFFileName(in);   4356     tmp___10 = TIFFFileName(in);
4357     fprintf((FILE */* __restrict  */)stderr,   4357     fprintf((FILE */* __restrict  */)stderr,
4358             (char const   */* __restrict  */)"Can\'t bias %s,%d as it has >1 Sample/Pixel\n",   4358             (char const   */* __restrict  */)"Can\'t bias %s,%d as it has >1 Sample/Pixel\n",
4359             tmp___10, (int )tmp___9);   4359             tmp___10, (int )tmp___9);
4360     return (0);   4360     return (0);
4361   }   4361   }
4362 }   4362 }
4363 }   4363 }
4364 static int cpDecodedStrips(TIFF *in , TIFF *out , uint32 imagelength ,   4364 static int cpDecodedStrips(TIFF *in , TIFF *out , uint32 imagelength ,
4365                            uint32 imagewidth , tsample_t spp )   4365                            uint32 imagewidth , tsample_t spp )
4366 {   4366 {
4367   tsize_t stripsize ;   4367   tsize_t stripsize ;
4368   tsize_t tmp ;   4368   tsize_t tmp ;
4369   tdata_t buf ;   4369   tdata_t buf ;
4370   tdata_t tmp___0 ;   4370   tdata_t tmp___0 ;
4371   tstrip_t s ;   4371   tstrip_t s ;
4372   tstrip_t ns ;   4372   tstrip_t ns ;
4373   tstrip_t tmp___1 ;   4373   tstrip_t tmp___1 ;
4374   uint32 row ;   4374   uint32 row ;
4375   tsize_t cc ;   4375   tsize_t cc ;
4376   tsize_t tmp___2 ;   4376   tsize_t tmp___2 ;
4377   tsize_t tmp___3 ;   4377   tsize_t tmp___3 ;
4378   tsize_t tmp___4 ;   4378   tsize_t tmp___4 ;
4379   tsize_t tmp___5 ;   4379   tsize_t tmp___5 ;
4380     4380  
4381   {   4381   {
4382   tmp = TIFFStripSize(in);   4382   tmp = TIFFStripSize(in);
4383   stripsize = tmp;   4383   stripsize = tmp;
4384   tmp___0 = _TIFFmalloc(stripsize);   4384   tmp___0 = _TIFFmalloc(stripsize);
4385   buf = tmp___0;   4385   buf = tmp___0;
4386   if (buf) {   4386   if (buf) {
4387     tmp___1 = TIFFNumberOfStrips(in);   4387     tmp___1 = TIFFNumberOfStrips(in);
4388     ns = tmp___1;   4388     ns = tmp___1;
4389     row = (uint32 )0;   4389     row = (uint32 )0;
4390     s = (tstrip_t )0;   4390     s = (tstrip_t )0;
4391     while (s < ns) {   4391     while (s < ns) {
4392       if (row + rowsperstrip > imagelength) {   4392       if (row + rowsperstrip > imagelength) {
4393         tmp___2 = TIFFVStripSize(in, imagelength - row);   4393         tmp___2 = TIFFVStripSize(in, imagelength - row);
4394         tmp___3 = tmp___2;   4394         tmp___3 = tmp___2;
4395       } else {   4395       } else {
4396         tmp___3 = stripsize;   4396         tmp___3 = stripsize;
4397       }   4397       }
4398       cc = tmp___3;   4398       cc = tmp___3;
4399       tmp___4 = TIFFReadEncodedStrip(in, s, buf, cc);   4399       tmp___4 = TIFFReadEncodedStrip(in, s, buf, cc);
4400       if (tmp___4 < 0) {   4400       if (tmp___4 < 0) {
4401         if (! ignore) {   4401         if (! ignore) {
4402           goto bad;   4402           goto bad;
4403         } else {   4403         } else {
4404     4404  
4405         }   4405         }
4406       } else {   4406       } else {
4407     4407  
4408       }   4408       }
4409       tmp___5 = TIFFWriteEncodedStrip(out, s, buf, cc);   4409       tmp___5 = TIFFWriteEncodedStrip(out, s, buf, cc);
4410       if (tmp___5 < 0) {   4410       if (tmp___5 < 0) {
4411         goto bad;   4411         goto bad;
4412       } else {   4412       } else {
4413     4413  
4414       }   4414       }
4415       row += rowsperstrip;   4415       row += rowsperstrip;
4416       s ++;   4416       s ++;
4417     }   4417     }
4418     _TIFFfree(buf);   4418     _TIFFfree(buf);
4419     return (1);   4419     return (1);
4420   } else {   4420   } else {
4421     4421  
4422   }   4422   }
4423   return (0);   4423   return (0);
4424   bad:   4424   bad:
4425   _TIFFfree(buf);   4425   _TIFFfree(buf);
4426   return (0);   4426   return (0);
4427 }   4427 }
4428 }   4428 }
4429 static int cpSeparate2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4429 static int cpSeparate2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4430                                     uint32 imagewidth , tsample_t spp )   4430                                     uint32 imagewidth , tsample_t spp )
4431 {   4431 {
4432   tdata_t buf ;   4432   tdata_t buf ;
4433   tsize_t tmp ;   4433   tsize_t tmp ;
4434   tdata_t tmp___0 ;   4434   tdata_t tmp___0 ;
4435   uint32 row ;   4435   uint32 row ;
4436   tsample_t s ;   4436   tsample_t s ;
4437   int tmp___1 ;   4437   int tmp___1 ;
4438   int tmp___2 ;   4438   int tmp___2 ;
4439     4439  
4440   {   4440   {
4441   tmp = TIFFScanlineSize(in);   4441   tmp = TIFFScanlineSize(in);
4442   tmp___0 = _TIFFmalloc(tmp);   4442   tmp___0 = _TIFFmalloc(tmp);
4443   buf = tmp___0;   4443   buf = tmp___0;
4444   s = (tsample_t )0;   4444   s = (tsample_t )0;
4445   while ((int )s < (int )spp) {   4445   while ((int )s < (int )spp) {
4446     row = (uint32 )0;   4446     row = (uint32 )0;
4447     while (row < imagelength) {   4447     while (row < imagelength) {
4448       tmp___1 = TIFFReadScanline(in, buf, row, s);   4448       tmp___1 = TIFFReadScanline(in, buf, row, s);
4449       if (tmp___1 < 0) {   4449       if (tmp___1 < 0) {
4450         if (! ignore) {   4450         if (! ignore) {
4451           goto bad;   4451           goto bad;
4452         } else {   4452         } else {
4453     4453  
4454         }   4454         }
4455       } else {   4455       } else {
4456     4456  
4457       }   4457       }
4458       tmp___2 = TIFFWriteScanline(out, buf, row, s);   4458       tmp___2 = TIFFWriteScanline(out, buf, row, s);
4459       if (tmp___2 < 0) {   4459       if (tmp___2 < 0) {
4460         goto bad;   4460         goto bad;
4461       } else {   4461       } else {
4462     4462  
4463       }   4463       }
4464       row ++;   4464       row ++;
4465     }   4465     }
4466     s = (tsample_t )((int )s + 1);   4466     s = (tsample_t )((int )s + 1);
4467   }   4467   }
4468   _TIFFfree(buf);   4468   _TIFFfree(buf);
4469   return (1);   4469   return (1);
4470   bad:   4470   bad:
4471   _TIFFfree(buf);   4471   _TIFFfree(buf);
4472   return (0);   4472   return (0);
4473 }   4473 }
4474 }   4474 }
4475 static int cpContig2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4475 static int cpContig2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4476                                   uint32 imagewidth , tsample_t spp )   4476                                   uint32 imagewidth , tsample_t spp )
4477 {   4477 {
4478   tdata_t inbuf ;   4478   tdata_t inbuf ;
4479   tsize_t tmp ;   4479   tsize_t tmp ;
4480   tdata_t tmp___0 ;   4480   tdata_t tmp___0 ;
4481   tdata_t outbuf ;   4481   tdata_t outbuf ;
4482   tsize_t tmp___1 ;   4482   tsize_t tmp___1 ;
4483   tdata_t tmp___2 ;   4483   tdata_t tmp___2 ;
4484   register uint8 *inp ;   4484   register uint8 *inp ;
4485   register uint8 *outp ;   4485   register uint8 *outp ;
4486   register uint32 n ;   4486   register uint32 n ;
4487   uint32 row ;   4487   uint32 row ;
4488   tsample_t s ;   4488   tsample_t s ;
4489   int tmp___3 ;   4489   int tmp___3 ;
4490   uint8 *tmp___4 ;   4490   uint8 *tmp___4 ;
4491   uint32 tmp___5 ;   4491   uint32 tmp___5 ;
4492   int tmp___6 ;   4492   int tmp___6 ;
4493     4493  
4494   {   4494   {
4495   tmp = TIFFScanlineSize(in);   4495   tmp = TIFFScanlineSize(in);
4496   tmp___0 = _TIFFmalloc(tmp);   4496   tmp___0 = _TIFFmalloc(tmp);
4497   inbuf = tmp___0;   4497   inbuf = tmp___0;
4498   tmp___1 = TIFFScanlineSize(out);   4498   tmp___1 = TIFFScanlineSize(out);
4499   tmp___2 = _TIFFmalloc(tmp___1);   4499   tmp___2 = _TIFFmalloc(tmp___1);
4500   outbuf = tmp___2;   4500   outbuf = tmp___2;
4501   s = (tsample_t )0;   4501   s = (tsample_t )0;
4502   while ((int )s < (int )spp) {   4502   while ((int )s < (int )spp) {
4503     row = (uint32 )0;   4503     row = (uint32 )0;
4504     while (row < imagelength) {   4504     while (row < imagelength) {
4505       tmp___3 = TIFFReadScanline(in, inbuf, row, (tsample_t )0);   4505       tmp___3 = TIFFReadScanline(in, inbuf, row, (tsample_t )0);
4506       if (tmp___3 < 0) {   4506       if (tmp___3 < 0) {
4507         if (! ignore) {   4507         if (! ignore) {
4508           goto bad;   4508           goto bad;
4509         } else {   4509         } else {
4510     4510  
4511         }   4511         }
4512       } else {   4512       } else {
4513     4513  
4514       }   4514       }
4515       inp = (uint8 *)inbuf + (int )s;   4515       inp = (uint8 *)inbuf + (int )s;
4516       outp = (uint8 *)outbuf;   4516       outp = (uint8 *)outbuf;
4517       n = imagewidth;   4517       n = imagewidth;
4518       while (1) {   4518       while (1) {
4519         tmp___5 = n;   4519         tmp___5 = n;
4520         n --;   4520         n --;
4521         if (tmp___5 > 0U) {   4521         if (tmp___5 > 0U) {
4522     4522  
4523         } else {   4523         } else {
4524           break;   4524           break;
4525         }   4525         }
4526         tmp___4 = outp;   4526         tmp___4 = outp;
4527         outp ++;   4527         outp ++;
4528         *tmp___4 = *inp;   4528         *tmp___4 = *inp;
4529         inp += (int )spp;   4529         inp += (int )spp;
4530       }   4530       }
4531       tmp___6 = TIFFWriteScanline(out, outbuf, row, s);   4531       tmp___6 = TIFFWriteScanline(out, outbuf, row, s);
4532       if (tmp___6 < 0) {   4532       if (tmp___6 < 0) {
4533         goto bad;   4533         goto bad;
4534       } else {   4534       } else {
4535     4535  
4536       }   4536       }
4537       row ++;   4537       row ++;
4538     }   4538     }
4539     s = (tsample_t )((int )s + 1);   4539     s = (tsample_t )((int )s + 1);
4540   }   4540   }
4541   if (inbuf) {   4541   if (inbuf) {
4542     _TIFFfree(inbuf);   4542     _TIFFfree(inbuf);
4543   } else {   4543   } else {
4544     4544  
4545   }   4545   }
4546   if (outbuf) {   4546   if (outbuf) {
4547     _TIFFfree(outbuf);   4547     _TIFFfree(outbuf);
4548   } else {   4548   } else {
4549     4549  
4550   }   4550   }
4551   return (1);   4551   return (1);
4552   bad:   4552   bad:
4553   if (inbuf) {   4553   if (inbuf) {
4554     _TIFFfree(inbuf);   4554     _TIFFfree(inbuf);
4555   } else {   4555   } else {
4556     4556  
4557   }   4557   }
4558   if (outbuf) {   4558   if (outbuf) {
4559     _TIFFfree(outbuf);   4559     _TIFFfree(outbuf);
4560   } else {   4560   } else {
4561     4561  
4562   }   4562   }
4563   return (0);   4563   return (0);
4564 }   4564 }
4565 }   4565 }
4566 static int cpSeparate2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4566 static int cpSeparate2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4567                                   uint32 imagewidth , tsample_t spp )   4567                                   uint32 imagewidth , tsample_t spp )
4568 {   4568 {
4569   tdata_t inbuf ;   4569   tdata_t inbuf ;
4570   tsize_t tmp ;   4570   tsize_t tmp ;
4571   tdata_t tmp___0 ;   4571   tdata_t tmp___0 ;
4572   tdata_t outbuf ;   4572   tdata_t outbuf ;
4573   tsize_t tmp___1 ;   4573   tsize_t tmp___1 ;
4574   tdata_t tmp___2 ;   4574   tdata_t tmp___2 ;
4575   register uint8 *inp ;   4575   register uint8 *inp ;
4576   register uint8 *outp ;   4576   register uint8 *outp ;
4577   register uint32 n ;   4577   register uint32 n ;
4578   uint32 row ;   4578   uint32 row ;
4579   tsample_t s ;   4579   tsample_t s ;
4580   int tmp___3 ;   4580   int tmp___3 ;
4581   uint8 *tmp___4 ;   4581   uint8 *tmp___4 ;
4582   uint32 tmp___5 ;   4582   uint32 tmp___5 ;
4583   int tmp___6 ;   4583   int tmp___6 ;
4584     4584  
4585   {   4585   {
4586   tmp = TIFFScanlineSize(in);   4586   tmp = TIFFScanlineSize(in);
4587   tmp___0 = _TIFFmalloc(tmp);   4587   tmp___0 = _TIFFmalloc(tmp);
4588   inbuf = tmp___0;   4588   inbuf = tmp___0;
4589   tmp___1 = TIFFScanlineSize(out);   4589   tmp___1 = TIFFScanlineSize(out);
4590   tmp___2 = _TIFFmalloc(tmp___1);   4590   tmp___2 = _TIFFmalloc(tmp___1);
4591   outbuf = tmp___2;   4591   outbuf = tmp___2;
4592   row = (uint32 )0;   4592   row = (uint32 )0;
4593   while (row < imagelength) {   4593   while (row < imagelength) {
4594     s = (tsample_t )0;   4594     s = (tsample_t )0;
4595     while ((int )s < (int )spp) {   4595     while ((int )s < (int )spp) {
4596       tmp___3 = TIFFReadScanline(in, inbuf, row, s);   4596       tmp___3 = TIFFReadScanline(in, inbuf, row, s);
4597       if (tmp___3 < 0) {   4597       if (tmp___3 < 0) {
4598         if (! ignore) {   4598         if (! ignore) {
4599           goto bad;   4599           goto bad;
4600         } else {   4600         } else {
4601     4601  
4602         }   4602         }
4603       } else {   4603       } else {
4604     4604  
4605       }   4605       }
4606       inp = (uint8 *)inbuf;   4606       inp = (uint8 *)inbuf;
4607       outp = (uint8 *)outbuf + (int )s;   4607       outp = (uint8 *)outbuf + (int )s;
4608       n = imagewidth;   4608       n = imagewidth;
4609       while (1) {   4609       while (1) {
4610         tmp___5 = n;   4610         tmp___5 = n;
4611         n --;   4611         n --;
4612         if (tmp___5 > 0U) {   4612         if (tmp___5 > 0U) {
4613     4613  
4614         } else {   4614         } else {
4615           break;   4615           break;
4616         }   4616         }
4617         tmp___4 = inp;   4617         tmp___4 = inp;
4618         inp ++;   4618         inp ++;
4619         *outp = *tmp___4;   4619         *outp = *tmp___4;
4620         outp += (int )spp;   4620         outp += (int )spp;
4621       }   4621       }
4622       s = (tsample_t )((int )s + 1);   4622       s = (tsample_t )((int )s + 1);
4623     }   4623     }
4624     tmp___6 = TIFFWriteScanline(out, outbuf, row, (tsample_t )0);   4624     tmp___6 = TIFFWriteScanline(out, outbuf, row, (tsample_t )0);
4625     if (tmp___6 < 0) {   4625     if (tmp___6 < 0) {
4626       goto bad;   4626       goto bad;
4627     } else {   4627     } else {
4628     4628  
4629     }   4629     }
4630     row ++;   4630     row ++;
4631   }   4631   }
4632   if (inbuf) {   4632   if (inbuf) {
4633     _TIFFfree(inbuf);   4633     _TIFFfree(inbuf);
4634   } else {   4634   } else {
4635     4635  
4636   }   4636   }
4637   if (outbuf) {   4637   if (outbuf) {
4638     _TIFFfree(outbuf);   4638     _TIFFfree(outbuf);
4639   } else {   4639   } else {
4640     4640  
4641   }   4641   }
4642   return (1);   4642   return (1);
4643   bad:   4643   bad:
4644   if (inbuf) {   4644   if (inbuf) {
4645     _TIFFfree(inbuf);   4645     _TIFFfree(inbuf);
4646   } else {   4646   } else {
4647     4647  
4648   }   4648   }
4649   if (outbuf) {   4649   if (outbuf) {
4650     _TIFFfree(outbuf);   4650     _TIFFfree(outbuf);
4651   } else {   4651   } else {
4652     4652  
4653   }   4653   }
4654   return (0);   4654   return (0);
4655 }   4655 }
4656 }   4656 }
4657 static void cpStripToTile(uint8 *out , uint8 *in , uint32 rows , uint32 cols ,   4657 static void cpStripToTile(uint8 *out , uint8 *in , uint32 rows , uint32 cols ,
4658                           int outskew , int inskew )   4658                           int outskew , int inskew )
4659 {   4659 {
4660   uint32 j ;   4660   uint32 j ;
4661   uint8 *tmp ;   4661   uint8 *tmp ;
4662   uint8 *tmp___0 ;   4662   uint8 *tmp___0 ;
4663   uint32 tmp___1 ;   4663   uint32 tmp___1 ;
4664   uint32 tmp___2 ;   4664   uint32 tmp___2 ;
4665     4665  
4666   {   4666   {
4667   while (1) {   4667   while (1) {
4668     tmp___2 = rows;   4668     tmp___2 = rows;
4669     rows --;   4669     rows --;
4670     if (tmp___2 > 0U) {   4670     if (tmp___2 > 0U) {
4671     4671  
4672     } else {   4672     } else {
4673       break;   4673       break;
4674     }   4674     }
4675     j = cols;   4675     j = cols;
4676     while (1) {   4676     while (1) {
4677       tmp___1 = j;   4677       tmp___1 = j;
4678       j --;   4678       j --;
4679       if (tmp___1 > 0U) {   4679       if (tmp___1 > 0U) {
4680     4680  
4681       } else {   4681       } else {
4682         break;   4682         break;
4683       }   4683       }
4684       tmp = out;   4684       tmp = out;
4685       out ++;   4685       out ++;
4686       tmp___0 = in;   4686       tmp___0 = in;
4687       in ++;   4687       in ++;
4688       *tmp = *tmp___0;   4688       *tmp = *tmp___0;
4689     }   4689     }
4690     out += outskew;   4690     out += outskew;
4691     in += inskew;   4691     in += inskew;
4692   }   4692   }
4693   return;   4693   return;
4694 }   4694 }
4695 }   4695 }
4696 static void cpContigBufToSeparateBuf(uint8 *out , uint8 *in , uint32 rows ,   4696 static void cpContigBufToSeparateBuf(uint8 *out , uint8 *in , uint32 rows ,
4697                                      uint32 cols , int outskew , int inskew ,   4697                                      uint32 cols , int outskew , int inskew ,
4698                                      tsample_t spp , int bytes_per_sample )   4698                                      tsample_t spp , int bytes_per_sample )
4699 {   4699 {
4700   uint32 j ;   4700   uint32 j ;
4701   int n ;   4701   int n ;
4702   uint8 *tmp ;   4702   uint8 *tmp ;
4703   uint8 *tmp___0 ;   4703   uint8 *tmp___0 ;
4704   int tmp___1 ;   4704   int tmp___1 ;
4705   uint32 tmp___2 ;   4705   uint32 tmp___2 ;
4706   uint32 tmp___3 ;   4706   uint32 tmp___3 ;
4707     4707  
4708   {   4708   {
4709   while (1) {   4709   while (1) {
4710     tmp___3 = rows;   4710     tmp___3 = rows;
4711     rows --;   4711     rows --;
4712     if (tmp___3 > 0U) {   4712     if (tmp___3 > 0U) {
4713     4713  
4714     } else {   4714     } else {
4715       break;   4715       break;
4716     }   4716     }
4717     j = cols;   4717     j = cols;
4718     while (1) {   4718     while (1) {
4719       tmp___2 = j;   4719       tmp___2 = j;
4720       j --;   4720       j --;
4721       if (tmp___2 > 0U) {   4721       if (tmp___2 > 0U) {
4722     4722  
4723       } else {   4723       } else {
4724         break;   4724         break;
4725       }   4725       }
4726       n = bytes_per_sample;   4726       n = bytes_per_sample;
4727       while (1) {   4727       while (1) {
4728         tmp___1 = n;   4728         tmp___1 = n;
4729         n --;   4729         n --;
4730         if (tmp___1) {   4730         if (tmp___1) {
4731     4731  
4732         } else {   4732         } else {
4733           break;   4733           break;
4734         }   4734         }
4735         tmp = out;   4735         tmp = out;
4736         out ++;   4736         out ++;
4737         tmp___0 = in;   4737         tmp___0 = in;
4738         in ++;   4738         in ++;
4739         *tmp = *tmp___0;   4739         *tmp = *tmp___0;
4740       }   4740       }
4741       in += ((int )spp - 1) * bytes_per_sample;   4741       in += ((int )spp - 1) * bytes_per_sample;
4742     }   4742     }
4743     out += outskew;   4743     out += outskew;
4744     in += inskew;   4744     in += inskew;
4745   }   4745   }
4746   return;   4746   return;
4747 }   4747 }
4748 }   4748 }
4749 static void cpSeparateBufToContigBuf(uint8 *out , uint8 *in , uint32 rows ,   4749 static void cpSeparateBufToContigBuf(uint8 *out , uint8 *in , uint32 rows ,
4750                                      uint32 cols , int outskew , int inskew ,   4750                                      uint32 cols , int outskew , int inskew ,
4751                                      tsample_t spp , int bytes_per_sample )   4751                                      tsample_t spp , int bytes_per_sample )
4752 {   4752 {
4753   uint32 j ;   4753   uint32 j ;
4754   int n ;   4754   int n ;
4755   uint8 *tmp ;   4755   uint8 *tmp ;
4756   uint8 *tmp___0 ;   4756   uint8 *tmp___0 ;
4757   int tmp___1 ;   4757   int tmp___1 ;
4758   uint32 tmp___2 ;   4758   uint32 tmp___2 ;
4759   uint32 tmp___3 ;   4759   uint32 tmp___3 ;
4760     4760  
4761   {   4761   {
4762   while (1) {   4762   while (1) {
4763     tmp___3 = rows;   4763     tmp___3 = rows;
4764     rows --;   4764     rows --;
4765     if (tmp___3 > 0U) {   4765     if (tmp___3 > 0U) {
4766     4766  
4767     } else {   4767     } else {
4768       break;   4768       break;
4769     }   4769     }
4770     j = cols;   4770     j = cols;
4771     while (1) {   4771     while (1) {
4772       tmp___2 = j;   4772       tmp___2 = j;
4773       j --;   4773       j --;
4774       if (tmp___2 > 0U) {   4774       if (tmp___2 > 0U) {
4775     4775  
4776       } else {   4776       } else {
4777         break;   4777         break;
4778       }   4778       }
4779       n = bytes_per_sample;   4779       n = bytes_per_sample;
4780       while (1) {   4780       while (1) {
4781         tmp___1 = n;   4781         tmp___1 = n;
4782         n --;   4782         n --;
4783         if (tmp___1) {   4783         if (tmp___1) {
4784     4784  
4785         } else {   4785         } else {
4786           break;   4786           break;
4787         }   4787         }
4788         tmp = out;   4788         tmp = out;
4789         out ++;   4789         out ++;
4790         tmp___0 = in;   4790         tmp___0 = in;
4791         in ++;   4791         in ++;
4792         *tmp = *tmp___0;   4792         *tmp = *tmp___0;
4793       }   4793       }
4794       out += ((int )spp - 1) * bytes_per_sample;   4794       out += ((int )spp - 1) * bytes_per_sample;
4795     }   4795     }
4796     out += outskew;   4796     out += outskew;
4797     in += inskew;   4797     in += inskew;
4798   }   4798   }
4799   return;   4799   return;
4800 }   4800 }
4801 }   4801 }
4802 static int cpImage(TIFF *in , TIFF *out ,   4802 static int cpImage(TIFF *in , TIFF *out ,
4803                    int (*fin)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  ) ,   4803                    int (*fin)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  ) ,
4804                    int (*fout)(TIFF * , uint8 * , uint32  , uint32  ,   4804                    int (*fout)(TIFF * , uint8 * , uint32  , uint32  ,
4805                                tsample_t  ) , uint32 imagelength ,   4805                                tsample_t  ) , uint32 imagelength ,
4806                    uint32 imagewidth , tsample_t spp )   4806                    uint32 imagewidth , tsample_t spp )
4807 {   4807 {
4808   int status ;   4808   int status ;
4809   tdata_t buf ;   4809   tdata_t buf ;
4810   tsize_t tmp ;   4810   tsize_t tmp ;
4811   tdata_t tmp___0 ;   4811   tdata_t tmp___0 ;
4812   int tmp___1 ;   4812   int tmp___1 ;
4813     4813  
4814   {   4814   {
4815   status = 0;   4815   status = 0;
4816   tmp = TIFFRasterScanlineSize(in);   4816   tmp = TIFFRasterScanlineSize(in);
4817   tmp___0 = _TIFFmalloc((tsize_t )((uint32 )tmp * imagelength));   4817   tmp___0 = _TIFFmalloc((tsize_t )((uint32 )tmp * imagelength));
4818   buf = tmp___0;   4818   buf = tmp___0;
4819   if (buf) {   4819   if (buf) {
4820     tmp___1 = (*fin)(in, (uint8 *)buf, imagelength, imagewidth, spp);   4820     tmp___1 = (*fin)(in, (uint8 *)buf, imagelength, imagewidth, spp);
4821     if (tmp___1) {   4821     if (tmp___1) {
4822       status = (*fout)(out, (uint8 *)buf, imagelength, imagewidth, spp);   4822       status = (*fout)(out, (uint8 *)buf, imagelength, imagewidth, spp);
4823     } else {   4823     } else {
4824     4824  
4825     }   4825     }
4826     _TIFFfree(buf);   4826     _TIFFfree(buf);
4827   } else {   4827   } else {
4828     4828  
4829   }   4829   }
4830   return (status);   4830   return (status);
4831 }   4831 }
4832 }   4832 }
4833 static int readContigStripsIntoBuffer(TIFF *in , uint8 *buf ,   4833 static int readContigStripsIntoBuffer(TIFF *in , uint8 *buf ,
4834                                       uint32 imagelength , uint32 imagewidth ,   4834                                       uint32 imagelength , uint32 imagewidth ,
4835                                       tsample_t spp )   4835                                       tsample_t spp )
4836 {   4836 {
4837   tsize_t scanlinesize ;   4837   tsize_t scanlinesize ;
4838   tsize_t tmp ;   4838   tsize_t tmp ;
4839   uint8 *bufp ;   4839   uint8 *bufp ;
4840   uint32 row ;   4840   uint32 row ;
4841   int tmp___0 ;   4841   int tmp___0 ;
4842     4842  
4843   {   4843   {
4844   tmp = TIFFScanlineSize(in);   4844   tmp = TIFFScanlineSize(in);
4845   scanlinesize = tmp;   4845   scanlinesize = tmp;
4846   bufp = buf;   4846   bufp = buf;
4847   row = (uint32 )0;   4847   row = (uint32 )0;
4848   while (row < imagelength) {   4848   while (row < imagelength) {
4849     tmp___0 = TIFFReadScanline(in, (tdata_t )bufp, row, (tsample_t )0);   4849     tmp___0 = TIFFReadScanline(in, (tdata_t )bufp, row, (tsample_t )0);
4850     if (tmp___0 < 0) {   4850     if (tmp___0 < 0) {
4851       if (! ignore) {   4851       if (! ignore) {
4852         return (0);   4852         return (0);
4853       } else {   4853       } else {
4854     4854  
4855       }   4855       }
4856     } else {   4856     } else {
4857     4857  
4858     }   4858     }
4859     bufp += scanlinesize;   4859     bufp += scanlinesize;
4860     row ++;   4860     row ++;
4861   }   4861   }
4862   return (1);   4862   return (1);
4863 }   4863 }
4864 }   4864 }
4865 static int readSeparateStripsIntoBuffer(TIFF *in , uint8 *buf ,   4865 static int readSeparateStripsIntoBuffer(TIFF *in , uint8 *buf ,
4866                                         uint32 imagelength , uint32 imagewidth ,   4866                                         uint32 imagelength , uint32 imagewidth ,
4867                                         tsample_t spp )   4867                                         tsample_t spp )
4868 {   4868 {
4869   int status ;   4869   int status ;
4870   tsize_t scanlinesize ;   4870   tsize_t scanlinesize ;
4871   tsize_t tmp ;   4871   tsize_t tmp ;
4872   tdata_t scanline ;   4872   tdata_t scanline ;
4873   tdata_t tmp___0 ;   4873   tdata_t tmp___0 ;
4874   uint8 *bufp ;   4874   uint8 *bufp ;
4875   uint32 row ;   4875   uint32 row ;
4876   tsample_t s ;   4876   tsample_t s ;
4877   uint8 *bp ;   4877   uint8 *bp ;
4878   tsize_t n ;   4878   tsize_t n ;
4879   uint8 *sbuf ;   4879   uint8 *sbuf ;
4880   int tmp___1 ;   4880   int tmp___1 ;
4881   uint8 *tmp___2 ;   4881   uint8 *tmp___2 ;
4882   tsize_t tmp___3 ;   4882   tsize_t tmp___3 ;
4883     4883  
4884   {   4884   {
4885   status = 1;   4885   status = 1;
4886   tmp = TIFFScanlineSize(in);   4886   tmp = TIFFScanlineSize(in);
4887   scanlinesize = tmp;   4887   scanlinesize = tmp;
4888   tmp___0 = _TIFFmalloc(scanlinesize);   4888   tmp___0 = _TIFFmalloc(scanlinesize);
4889   scanline = tmp___0;   4889   scanline = tmp___0;
4890   if (! scanlinesize) {   4890   if (! scanlinesize) {
4891     return (0);   4891     return (0);
4892   } else {   4892   } else {
4893     4893  
4894   }   4894   }
4895   if (scanline) {   4895   if (scanline) {
4896     bufp = buf;   4896     bufp = buf;
4897     row = (uint32 )0;   4897     row = (uint32 )0;
4898     while (row < imagelength) {   4898     while (row < imagelength) {
4899       s = (tsample_t )0;   4899       s = (tsample_t )0;
4900       while ((int )s < (int )spp) {   4900       while ((int )s < (int )spp) {
4901         bp = bufp + (int )s;   4901         bp = bufp + (int )s;
4902         n = scanlinesize;   4902         n = scanlinesize;
4903         sbuf = (uint8 *)scanline;   4903         sbuf = (uint8 *)scanline;
4904         tmp___1 = TIFFReadScanline(in, scanline, row, s);   4904         tmp___1 = TIFFReadScanline(in, scanline, row, s);
4905         if (tmp___1 < 0) {   4905         if (tmp___1 < 0) {
4906           if (! ignore) {   4906           if (! ignore) {
4907             status = 0;   4907             status = 0;
4908             goto done;   4908             goto done;
4909           } else {   4909           } else {
4910     4910  
4911           }   4911           }
4912         } else {   4912         } else {
4913     4913  
4914         }   4914         }
4915         while (1) {   4915         while (1) {
4916           tmp___3 = n;   4916           tmp___3 = n;
4917           n --;   4917           n --;
4918           if (tmp___3 > 0) {   4918           if (tmp___3 > 0) {
4919     4919  
4920           } else {   4920           } else {
4921             break;   4921             break;
4922           }   4922           }
4923           tmp___2 = sbuf;   4923           tmp___2 = sbuf;
4924           sbuf ++;   4924           sbuf ++;
4925           *bp = *tmp___2;   4925           *bp = *tmp___2;
4926           bp += (int )spp;   4926           bp += (int )spp;
4927         }   4927         }
4928         s = (tsample_t )((int )s + 1);   4928         s = (tsample_t )((int )s + 1);
4929       }   4929       }
4930       bufp += scanlinesize * (tsize_t )spp;   4930       bufp += scanlinesize * (tsize_t )spp;
4931       row ++;   4931       row ++;
4932     }   4932     }
4933     done:   4933     done:
4934     _TIFFfree(scanline);   4934     _TIFFfree(scanline);
4935     return (status);   4935     return (status);
4936   } else {   4936   } else {
4937     4937  
4938   }   4938   }
4939   return (0);   4939   return (0);
4940 }   4940 }
4941 }   4941 }
4942 static int readContigTilesIntoBuffer(TIFF *in , uint8 *buf ,   4942 static int readContigTilesIntoBuffer(TIFF *in , uint8 *buf ,
4943                                      uint32 imagelength , uint32 imagewidth ,   4943                                      uint32 imagelength , uint32 imagewidth ,
4944                                      tsample_t spp )   4944                                      tsample_t spp )
4945 {   4945 {
4946   int status ;   4946   int status ;
4947   tdata_t tilebuf ;   4947   tdata_t tilebuf ;
4948   tsize_t tmp ;   4948   tsize_t tmp ;
4949   tdata_t tmp___0 ;   4949   tdata_t tmp___0 ;
4950   uint32 imagew ;   4950   uint32 imagew ;
4951   tsize_t tmp___1 ;   4951   tsize_t tmp___1 ;
4952   uint32 tilew ;   4952   uint32 tilew ;
4953   tsize_t tmp___2 ;   4953   tsize_t tmp___2 ;
4954   int iskew ;   4954   int iskew ;
4955   uint8 *bufp ;   4955   uint8 *bufp ;
4956   uint32 tw ;   4956   uint32 tw ;
4957   uint32 tl ;   4957   uint32 tl ;
4958   uint32 row ;   4958   uint32 row ;
4959   uint32 nrow ;   4959   uint32 nrow ;
4960   uint32 tmp___3 ;   4960   uint32 tmp___3 ;
4961   uint32 colb ;   4961   uint32 colb ;
4962   uint32 col ;   4962   uint32 col ;
4963   tsize_t tmp___4 ;   4963   tsize_t tmp___4 ;
4964   uint32 width ;   4964   uint32 width ;
4965   uint32 oskew ;   4965   uint32 oskew ;
4966     4966  
4967   {   4967   {
4968   status = 1;   4968   status = 1;
4969   tmp = TIFFTileSize(in);   4969   tmp = TIFFTileSize(in);
4970   tmp___0 = _TIFFmalloc(tmp);   4970   tmp___0 = _TIFFmalloc(tmp);
4971   tilebuf = tmp___0;   4971   tilebuf = tmp___0;
4972   tmp___1 = TIFFScanlineSize(in);   4972   tmp___1 = TIFFScanlineSize(in);
4973   imagew = (uint32 )tmp___1;   4973   imagew = (uint32 )tmp___1;
4974   tmp___2 = TIFFTileRowSize(in);   4974   tmp___2 = TIFFTileRowSize(in);
4975   tilew = (uint32 )tmp___2;   4975   tilew = (uint32 )tmp___2;
4976   iskew = (int )(imagew - tilew);   4976   iskew = (int )(imagew - tilew);
4977   bufp = buf;   4977   bufp = buf;
4978   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {   4978   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {
4979     return (0);   4979     return (0);
4980   } else {   4980   } else {
4981     4981  
4982   }   4982   }
4983   TIFFGetField(in, (ttag_t )322, & tw);   4983   TIFFGetField(in, (ttag_t )322, & tw);
4984   TIFFGetField(in, (ttag_t )323, & tl);   4984   TIFFGetField(in, (ttag_t )323, & tl);
4985   row = (uint32 )0;   4985   row = (uint32 )0;
4986   while (row < imagelength) {   4986   while (row < imagelength) {
4987     if (row + tl > imagelength) {   4987     if (row + tl > imagelength) {
4988       tmp___3 = imagelength - row;   4988       tmp___3 = imagelength - row;
4989     } else {   4989     } else {
4990       tmp___3 = tl;   4990       tmp___3 = tl;
4991     }   4991     }
4992     nrow = tmp___3;   4992     nrow = tmp___3;
4993     colb = (uint32 )0;   4993     colb = (uint32 )0;
4994     col = (uint32 )0;   4994     col = (uint32 )0;
4995     while (col < imagewidth) {   4995     while (col < imagewidth) {
4996       tmp___4 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, (tsample_t )0);   4996       tmp___4 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, (tsample_t )0);
4997       if (tmp___4 < 0) {   4997       if (tmp___4 < 0) {
4998         if (! ignore) {   4998         if (! ignore) {
4999           status = 0;   4999           status = 0;
5000           goto done;   5000           goto done;
5001         } else {   5001         } else {
5002     5002  
5003         }   5003         }
5004       } else {   5004       } else {
5005     5005  
5006       }   5006       }
5007       if (colb + tilew > imagew) {   5007       if (colb + tilew > imagew) {
5008         width = imagew - colb;   5008         width = imagew - colb;
5009         oskew = tilew - width;   5009         oskew = tilew - width;
5010         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, width,   5010         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, width,
5011                       (int )(oskew + (uint32 )iskew), (int )oskew);   5011                       (int )(oskew + (uint32 )iskew), (int )oskew);
5012       } else {   5012       } else {
5013         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, tilew, iskew, 0);   5013         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, tilew, iskew, 0);
5014       }   5014       }
5015       colb += tilew;   5015       colb += tilew;
5016       col += tw;   5016       col += tw;
5017     }   5017     }
5018     bufp += imagew * nrow;   5018     bufp += imagew * nrow;
5019     row += tl;   5019     row += tl;
5020   }   5020   }
5021   done:   5021   done:
5022   _TIFFfree(tilebuf);   5022   _TIFFfree(tilebuf);
5023   return (status);   5023   return (status);
5024 }   5024 }
5025 }   5025 }
5026 static int readSeparateTilesIntoBuffer(TIFF *in , uint8 *buf ,   5026 static int readSeparateTilesIntoBuffer(TIFF *in , uint8 *buf ,
5027                                        uint32 imagelength , uint32 imagewidth ,   5027                                        uint32 imagelength , uint32 imagewidth ,
5028                                        tsample_t spp )   5028                                        tsample_t spp )
5029 {   5029 {
5030   int status ;   5030   int status ;
5031   uint32 imagew ;   5031   uint32 imagew ;
5032   tsize_t tmp ;   5032   tsize_t tmp ;
5033   uint32 tilew ;   5033   uint32 tilew ;
5034   tsize_t tmp___0 ;   5034   tsize_t tmp___0 ;
5035   int iskew ;   5035   int iskew ;
5036   tdata_t tilebuf ;   5036   tdata_t tilebuf ;
5037   tsize_t tmp___1 ;   5037   tsize_t tmp___1 ;
5038   tdata_t tmp___2 ;   5038   tdata_t tmp___2 ;
5039   uint8 *bufp ;   5039   uint8 *bufp ;
5040   uint32 tw ;   5040   uint32 tw ;
5041   uint32 tl ;   5041   uint32 tl ;
5042   uint32 row ;   5042   uint32 row ;
5043   uint16 bps ;   5043   uint16 bps ;
5044   uint16 bytes_per_sample ;   5044   uint16 bytes_per_sample ;
5045   uint32 nrow ;   5045   uint32 nrow ;
5046   uint32 tmp___3 ;   5046   uint32 tmp___3 ;
5047   uint32 colb ;   5047   uint32 colb ;
5048   uint32 col ;   5048   uint32 col ;
5049   tsample_t s ;   5049   tsample_t s ;
5050   tsize_t tmp___4 ;   5050   tsize_t tmp___4 ;
5051   uint32 width ;   5051   uint32 width ;
5052   int oskew ;   5052   int oskew ;
5053     5053  
5054   {   5054   {
5055   status = 1;   5055   status = 1;
5056   tmp = TIFFRasterScanlineSize(in);   5056   tmp = TIFFRasterScanlineSize(in);
5057   imagew = (uint32 )tmp;   5057   imagew = (uint32 )tmp;
5058   tmp___0 = TIFFTileRowSize(in);   5058   tmp___0 = TIFFTileRowSize(in);
5059   tilew = (uint32 )tmp___0;   5059   tilew = (uint32 )tmp___0;
5060   iskew = (int )(imagew - tilew * (uint32 )spp);   5060   iskew = (int )(imagew - tilew * (uint32 )spp);
5061   tmp___1 = TIFFTileSize(in);   5061   tmp___1 = TIFFTileSize(in);
5062   tmp___2 = _TIFFmalloc(tmp___1);   5062   tmp___2 = _TIFFmalloc(tmp___1);
5063   tilebuf = tmp___2;   5063   tilebuf = tmp___2;
5064   bufp = buf;   5064   bufp = buf;
5065   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {   5065   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {
5066     return (0);   5066     return (0);
5067   } else {   5067   } else {
5068     5068  
5069   }   5069   }
5070   TIFFGetField(in, (ttag_t )322, & tw);   5070   TIFFGetField(in, (ttag_t )322, & tw);
5071   TIFFGetField(in, (ttag_t )323, & tl);   5071   TIFFGetField(in, (ttag_t )323, & tl);
5072   TIFFGetField(in, (ttag_t )258, & bps);   5072   TIFFGetField(in, (ttag_t )258, & bps);
5073   if ((int )bps % 8 == 0) {   5073   if ((int )bps % 8 == 0) {
5074     5074  
5075   } else {   5075   } else {
5076     __assert_fail("bps % 8 == 0", "tiffcp.c", 1163U,   5076     __assert_fail("bps % 8 == 0", "tiffcp.c", 1163U,
5077                   "readSeparateTilesIntoBuffer");   5077                   "readSeparateTilesIntoBuffer");
5078   }   5078   }
5079   bytes_per_sample = (uint16 )((int )bps / 8);   5079   bytes_per_sample = (uint16 )((int )bps / 8);
5080   row = (uint32 )0;   5080   row = (uint32 )0;
5081   while (row < imagelength) {   5081   while (row < imagelength) {
5082     if (row + tl > imagelength) {   5082     if (row + tl > imagelength) {
5083       tmp___3 = imagelength - row;   5083       tmp___3 = imagelength - row;
5084     } else {   5084     } else {
5085       tmp___3 = tl;   5085       tmp___3 = tl;
5086     }   5086     }
5087     nrow = tmp___3;   5087     nrow = tmp___3;
5088     colb = (uint32 )0;   5088     colb = (uint32 )0;
5089     col = (uint32 )0;   5089     col = (uint32 )0;
5090     while (col < imagewidth) {   5090     while (col < imagewidth) {
5091       s = (tsample_t )0;   5091       s = (tsample_t )0;
5092       while ((int )s < (int )spp) {   5092       while ((int )s < (int )spp) {
5093         tmp___4 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, s);   5093         tmp___4 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, s);
5094         if (tmp___4 < 0) {   5094         if (tmp___4 < 0) {
5095           if (! ignore) {   5095           if (! ignore) {
5096             status = 0;   5096             status = 0;
5097             goto done;   5097             goto done;
5098           } else {   5098           } else {
5099     5099  
5100           }   5100           }
5101         } else {   5101         } else {
5102     5102  
5103         }   5103         }
5104         if (colb + tilew * (uint32 )spp > imagew) {   5104         if (colb + tilew * (uint32 )spp > imagew) {
5105           width = imagew - colb;   5105           width = imagew - colb;
5106           oskew = (int )(tilew * (uint32 )spp - width);   5106           oskew = (int )(tilew * (uint32 )spp - width);
5107           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,   5107           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,
5108                                    (uint8 *)tilebuf, nrow,   5108                                    (uint8 *)tilebuf, nrow,
5109                                    width / (uint32 )((int )spp * (int )bytes_per_sample),   5109                                    width / (uint32 )((int )spp * (int )bytes_per_sample),
5110                                    oskew + iskew, oskew / (int )spp, spp,   5110                                    oskew + iskew, oskew / (int )spp, spp,
5111                                    (int )bytes_per_sample);   5111                                    (int )bytes_per_sample);
5112         } else {   5112         } else {
5113           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,   5113           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,
5114                                    (uint8 *)tilebuf, nrow, tw, iskew, 0, spp,   5114                                    (uint8 *)tilebuf, nrow, tw, iskew, 0, spp,
5115                                    (int )bytes_per_sample);   5115                                    (int )bytes_per_sample);
5116         }   5116         }
5117         s = (tsample_t )((int )s + 1);   5117         s = (tsample_t )((int )s + 1);
5118       }   5118       }
5119       colb += tilew * (uint32 )spp;   5119       colb += tilew * (uint32 )spp;
5120       col += tw;   5120       col += tw;
5121     }   5121     }
5122     bufp += imagew * nrow;   5122     bufp += imagew * nrow;
5123     row += tl;   5123     row += tl;
5124   }   5124   }
5125   done:   5125   done:
5126   _TIFFfree(tilebuf);   5126   _TIFFfree(tilebuf);
5127   return (status);   5127   return (status);
5128 }   5128 }
5129 }   5129 }
5130 static int writeBufferToContigStrips(TIFF *out , uint8 *buf ,   5130 static int writeBufferToContigStrips(TIFF *out , uint8 *buf ,
5131                                      uint32 imagelength , uint32 imagewidth ,   5131                                      uint32 imagelength , uint32 imagewidth ,
5132                                      tsample_t spp )   5132                                      tsample_t spp )
5133 {   5133 {
5134   uint32 row ;   5134   uint32 row ;
5135   uint32 rowsperstrip___0 ;   5135   uint32 rowsperstrip___0 ;
5136   tstrip_t strip ;   5136   tstrip_t strip ;
5137   uint32 nrows ;   5137   uint32 nrows ;
5138   uint32 tmp ;   5138   uint32 tmp ;
5139   tsize_t stripsize ;   5139   tsize_t stripsize ;
5140   tsize_t tmp___0 ;   5140   tsize_t tmp___0 ;
5141   tstrip_t tmp___1 ;   5141   tstrip_t tmp___1 ;
5142   tsize_t tmp___2 ;   5142   tsize_t tmp___2 ;
5143     5143  
5144   {   5144   {
5145   strip = (tstrip_t )0;   5145   strip = (tstrip_t )0;
5146   TIFFGetFieldDefaulted(out, (ttag_t )278, & rowsperstrip___0);   5146   TIFFGetFieldDefaulted(out, (ttag_t )278, & rowsperstrip___0);
5147   row = (uint32 )0;   5147   row = (uint32 )0;
5148   while (row < imagelength) {   5148   while (row < imagelength) {
5149     if (row + rowsperstrip___0 > imagelength) {   5149     if (row + rowsperstrip___0 > imagelength) {
5150       tmp = imagelength - row;   5150       tmp = imagelength - row;
5151     } else {   5151     } else {
5152       tmp = rowsperstrip___0;   5152       tmp = rowsperstrip___0;
5153     }   5153     }
5154     nrows = tmp;   5154     nrows = tmp;
5155     tmp___0 = TIFFVStripSize(out, nrows);   5155     tmp___0 = TIFFVStripSize(out, nrows);
5156     stripsize = tmp___0;   5156     stripsize = tmp___0;
5157     tmp___1 = strip;   5157     tmp___1 = strip;
5158     strip ++;   5158     strip ++;
5159     tmp___2 = TIFFWriteEncodedStrip(out, tmp___1, (tdata_t )buf, stripsize);   5159     tmp___2 = TIFFWriteEncodedStrip(out, tmp___1, (tdata_t )buf, stripsize);
5160     if (tmp___2 < 0) {   5160     if (tmp___2 < 0) {
5161       return (0);   5161       return (0);
5162     } else {   5162     } else {
5163     5163  
5164     }   5164     }
5165     buf += stripsize;   5165     buf += stripsize;
5166     row += rowsperstrip___0;   5166     row += rowsperstrip___0;
5167   }   5167   }
5168   return (1);   5168   return (1);
5169 }   5169 }
5170 }   5170 }
5171 static int writeBufferToSeparateStrips(TIFF *out , uint8 *buf ,   5171 static int writeBufferToSeparateStrips(TIFF *out , uint8 *buf ,
5172                                        uint32 imagelength , uint32 imagewidth ,   5172                                        uint32 imagelength , uint32 imagewidth ,
5173                                        tsample_t spp )   5173                                        tsample_t spp )
5174 {   5174 {
5175   uint32 rowsize ;   5175   uint32 rowsize ;
5176   uint32 rowsperstrip___0 ;   5176   uint32 rowsperstrip___0 ;
5177   tdata_t obuf ;   5177   tdata_t obuf ;
5178   tsize_t tmp ;   5178   tsize_t tmp ;
5179   tdata_t tmp___0 ;   5179   tdata_t tmp___0 ;
5180   tstrip_t strip ;   5180   tstrip_t strip ;
5181   tsample_t s ;   5181   tsample_t s ;
5182   uint32 row ;   5182   uint32 row ;
5183   uint32 nrows ;   5183   uint32 nrows ;
5184   uint32 tmp___1 ;   5184   uint32 tmp___1 ;
5185   tsize_t stripsize ;   5185   tsize_t stripsize ;
5186   tsize_t tmp___2 ;   5186   tsize_t tmp___2 ;
5187   tstrip_t tmp___3 ;   5187   tstrip_t tmp___3 ;
5188   tsize_t tmp___4 ;   5188   tsize_t tmp___4 ;
5189     5189  
5190   {   5190   {
5191   rowsize = imagewidth * (uint32 )spp;   5191   rowsize = imagewidth * (uint32 )spp;
5192   tmp = TIFFStripSize(out);   5192   tmp = TIFFStripSize(out);
5193   tmp___0 = _TIFFmalloc(tmp);   5193   tmp___0 = _TIFFmalloc(tmp);
5194   obuf = tmp___0;   5194   obuf = tmp___0;
5195   strip = (tstrip_t )0;   5195   strip = (tstrip_t )0;
5196   if ((unsigned int )obuf == (unsigned int )((void *)0)) {   5196   if ((unsigned int )obuf == (unsigned int )((void *)0)) {
5197     return (0);   5197     return (0);
5198   } else {   5198   } else {
5199     5199  
5200   }   5200   }
5201   TIFFGetFieldDefaulted(out, (ttag_t )278, & rowsperstrip___0);   5201   TIFFGetFieldDefaulted(out, (ttag_t )278, & rowsperstrip___0);
5202   s = (tsample_t )0;   5202   s = (tsample_t )0;
5203   while ((int )s < (int )spp) {   5203   while ((int )s < (int )spp) {
5204     row = (uint32 )0;   5204     row = (uint32 )0;
5205     while (row < imagelength) {   5205     while (row < imagelength) {
5206       if (row + rowsperstrip___0 > imagelength) {   5206       if (row + rowsperstrip___0 > imagelength) {
5207         tmp___1 = imagelength - row;   5207         tmp___1 = imagelength - row;
5208       } else {   5208       } else {
5209         tmp___1 = rowsperstrip___0;   5209         tmp___1 = rowsperstrip___0;
5210       }   5210       }
5211       nrows = tmp___1;   5211       nrows = tmp___1;
5212       tmp___2 = TIFFVStripSize(out, nrows);   5212       tmp___2 = TIFFVStripSize(out, nrows);
5213       stripsize = tmp___2;   5213       stripsize = tmp___2;
5214       cpContigBufToSeparateBuf((uint8 *)obuf, (buf + row * rowsize) + (int )s,   5214       cpContigBufToSeparateBuf((uint8 *)obuf, (buf + row * rowsize) + (int )s,
5215                                nrows, imagewidth, 0, 0, spp, 1);   5215                                nrows, imagewidth, 0, 0, spp, 1);
5216       tmp___3 = strip;   5216       tmp___3 = strip;
5217       strip ++;   5217       strip ++;
5218       tmp___4 = TIFFWriteEncodedStrip(out, tmp___3, obuf, stripsize);   5218       tmp___4 = TIFFWriteEncodedStrip(out, tmp___3, obuf, stripsize);
5219       if (tmp___4 < 0) {   5219       if (tmp___4 < 0) {
5220         _TIFFfree(obuf);   5220         _TIFFfree(obuf);
5221         return (0);   5221         return (0);
5222       } else {   5222       } else {
5223     5223  
5224       }   5224       }
5225       row += rowsperstrip___0;   5225       row += rowsperstrip___0;
5226     }   5226     }
5227     s = (tsample_t )((int )s + 1);   5227     s = (tsample_t )((int )s + 1);
5228   }   5228   }
5229   _TIFFfree(obuf);   5229   _TIFFfree(obuf);
5230   return (1);   5230   return (1);
5231 }   5231 }
5232 }   5232 }
5233 static int writeBufferToContigTiles(TIFF *out , uint8 *buf ,   5233 static int writeBufferToContigTiles(TIFF *out , uint8 *buf ,
5234                                     uint32 imagelength , uint32 imagewidth ,   5234                                     uint32 imagelength , uint32 imagewidth ,
5235                                     tsample_t spp )   5235                                     tsample_t spp )
5236 {   5236 {
5237   uint32 imagew ;   5237   uint32 imagew ;
5238   tsize_t tmp ;   5238   tsize_t tmp ;
5239   uint32 tilew ;   5239   uint32 tilew ;
5240   tsize_t tmp___0 ;   5240   tsize_t tmp___0 ;
5241   int iskew ;   5241   int iskew ;
5242   tdata_t obuf ;   5242   tdata_t obuf ;
5243   tsize_t tmp___1 ;   5243   tsize_t tmp___1 ;
5244   tdata_t tmp___2 ;   5244   tdata_t tmp___2 ;
5245   uint8 *bufp ;   5245   uint8 *bufp ;
5246   uint32 tl ;   5246   uint32 tl ;
5247   uint32 tw ;   5247   uint32 tw ;
5248   uint32 row ;   5248   uint32 row ;
5249   uint32 nrow ;   5249   uint32 nrow ;
5250   uint32 tmp___3 ;   5250   uint32 tmp___3 ;
5251   uint32 colb ;   5251   uint32 colb ;
5252   uint32 col ;   5252   uint32 col ;
5253   uint32 width ;   5253   uint32 width ;
5254   int oskew ;   5254   int oskew ;
5255   tsize_t tmp___4 ;   5255   tsize_t tmp___4 ;
5256     5256  
5257   {   5257   {
5258   tmp = TIFFScanlineSize(out);   5258   tmp = TIFFScanlineSize(out);
5259   imagew = (uint32 )tmp;   5259   imagew = (uint32 )tmp;
5260   tmp___0 = TIFFTileRowSize(out);   5260   tmp___0 = TIFFTileRowSize(out);
5261   tilew = (uint32 )tmp___0;   5261   tilew = (uint32 )tmp___0;
5262   iskew = (int )(imagew - tilew);   5262   iskew = (int )(imagew - tilew);
5263   tmp___1 = TIFFTileSize(out);   5263   tmp___1 = TIFFTileSize(out);
5264   tmp___2 = _TIFFmalloc(tmp___1);   5264   tmp___2 = _TIFFmalloc(tmp___1);
5265   obuf = tmp___2;   5265   obuf = tmp___2;
5266   bufp = buf;   5266   bufp = buf;
5267   if ((unsigned int )obuf == (unsigned int )((void *)0)) {   5267   if ((unsigned int )obuf == (unsigned int )((void *)0)) {
5268     return (0);   5268     return (0);
5269   } else {   5269   } else {
5270     5270  
5271   }   5271   }
5272   TIFFGetField(out, (ttag_t )323, & tl);   5272   TIFFGetField(out, (ttag_t )323, & tl);
5273   TIFFGetField(out, (ttag_t )322, & tw);   5273   TIFFGetField(out, (ttag_t )322, & tw);
5274   row = (uint32 )0;   5274   row = (uint32 )0;
5275   while (row < imagelength) {   5275   while (row < imagelength) {
5276     if (row + tl > imagelength) {   5276     if (row + tl > imagelength) {
5277       tmp___3 = imagelength - row;   5277       tmp___3 = imagelength - row;
5278     } else {   5278     } else {
5279       tmp___3 = tl;   5279       tmp___3 = tl;
5280     }   5280     }
5281     nrow = tmp___3;   5281     nrow = tmp___3;
5282     colb = (uint32 )0;   5282     colb = (uint32 )0;
5283     col = (uint32 )0;   5283     col = (uint32 )0;
5284     while (col < imagewidth) {   5284     while (col < imagewidth) {
5285       if (colb + tilew > imagew) {   5285       if (colb + tilew > imagew) {
5286         width = imagew - colb;   5286         width = imagew - colb;
5287         oskew = (int )(tilew - width);   5287         oskew = (int )(tilew - width);
5288         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, width, oskew,   5288         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, width, oskew,
5289                       oskew + iskew);   5289                       oskew + iskew);
5290       } else {   5290       } else {
5291         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, tilew, 0, iskew);   5291         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, tilew, 0, iskew);
5292       }   5292       }
5293       tmp___4 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, (tsample_t )0);   5293       tmp___4 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, (tsample_t )0);
5294       if (tmp___4 < 0) {   5294       if (tmp___4 < 0) {
5295         _TIFFfree(obuf);   5295         _TIFFfree(obuf);
5296         return (0);   5296         return (0);
5297       } else {   5297       } else {
5298     5298  
5299       }   5299       }
5300       colb += tilew;   5300       colb += tilew;
5301       col += tw;   5301       col += tw;
5302     }   5302     }
5303     bufp += nrow * imagew;   5303     bufp += nrow * imagew;
5304     row += tilelength;   5304     row += tilelength;
5305   }   5305   }
5306   _TIFFfree(obuf);   5306   _TIFFfree(obuf);
5307   return (1);   5307   return (1);
5308 }   5308 }
5309 }   5309 }
5310 static int writeBufferToSeparateTiles(TIFF *out , uint8 *buf ,   5310 static int writeBufferToSeparateTiles(TIFF *out , uint8 *buf ,
5311                                       uint32 imagelength , uint32 imagewidth ,   5311                                       uint32 imagelength , uint32 imagewidth ,
5312                                       tsample_t spp )   5312                                       tsample_t spp )
5313 {   5313 {
5314   uint32 imagew ;   5314   uint32 imagew ;
5315   tsize_t tmp ;   5315   tsize_t tmp ;
5316   tsize_t tilew ;   5316   tsize_t tilew ;
5317   tsize_t tmp___0 ;   5317   tsize_t tmp___0 ;
5318   uint32 iimagew ;   5318   uint32 iimagew ;
5319   tsize_t tmp___1 ;   5319   tsize_t tmp___1 ;
5320   int iskew ;   5320   int iskew ;
5321   tdata_t obuf ;   5321   tdata_t obuf ;
5322   tsize_t tmp___2 ;   5322   tsize_t tmp___2 ;
5323   tdata_t tmp___3 ;   5323   tdata_t tmp___3 ;
5324   uint8 *bufp ;   5324   uint8 *bufp ;
5325   uint32 tl ;   5325   uint32 tl ;
5326   uint32 tw ;   5326   uint32 tw ;
5327   uint32 row ;   5327   uint32 row ;
5328   uint16 bps ;   5328   uint16 bps ;
5329   uint16 bytes_per_sample ;   5329   uint16 bytes_per_sample ;
5330   uint32 nrow ;   5330   uint32 nrow ;
5331   uint32 tmp___4 ;   5331   uint32 tmp___4 ;
5332   uint32 colb ;   5332   uint32 colb ;
5333   uint32 col ;   5333   uint32 col ;
5334   tsample_t s ;   5334   tsample_t s ;
5335   uint32 width ;   5335   uint32 width ;
5336   int oskew ;   5336   int oskew ;
5337   tsize_t tmp___5 ;   5337   tsize_t tmp___5 ;
5338     5338  
5339   {   5339   {
5340   tmp = TIFFScanlineSize(out);   5340   tmp = TIFFScanlineSize(out);
5341   imagew = (uint32 )tmp;   5341   imagew = (uint32 )tmp;
5342   tmp___0 = TIFFTileRowSize(out);   5342   tmp___0 = TIFFTileRowSize(out);
5343   tilew = tmp___0;   5343   tilew = tmp___0;
5344   tmp___1 = TIFFRasterScanlineSize(out);   5344   tmp___1 = TIFFRasterScanlineSize(out);
5345   iimagew = (uint32 )tmp___1;   5345   iimagew = (uint32 )tmp___1;
5346   iskew = (int )(iimagew - (uint32 )(tilew * (tsize_t )spp));   5346   iskew = (int )(iimagew - (uint32 )(tilew * (tsize_t )spp));
5347   tmp___2 = TIFFTileSize(out);   5347   tmp___2 = TIFFTileSize(out);
5348   tmp___3 = _TIFFmalloc(tmp___2);   5348   tmp___3 = _TIFFmalloc(tmp___2);
5349   obuf = tmp___3;   5349   obuf = tmp___3;
5350   bufp = buf;   5350   bufp = buf;
5351   if ((unsigned int )obuf == (unsigned int )((void *)0)) {   5351   if ((unsigned int )obuf == (unsigned int )((void *)0)) {
5352     return (0);   5352     return (0);
5353   } else {   5353   } else {
5354     5354  
5355   }   5355   }
5356   TIFFGetField(out, (ttag_t )323, & tl);   5356   TIFFGetField(out, (ttag_t )323, & tl);
5357   TIFFGetField(out, (ttag_t )322, & tw);   5357   TIFFGetField(out, (ttag_t )322, & tw);
5358   TIFFGetField(out, (ttag_t )258, & bps);   5358   TIFFGetField(out, (ttag_t )258, & bps);
5359   if ((int )bps % 8 == 0) {   5359   if ((int )bps % 8 == 0) {
5360     5360  
5361   } else {   5361   } else {
5362     __assert_fail("bps % 8 == 0", "tiffcp.c", 1322U,   5362     __assert_fail("bps % 8 == 0", "tiffcp.c", 1322U,
5363                   "writeBufferToSeparateTiles");   5363                   "writeBufferToSeparateTiles");
5364   }   5364   }
5365   bytes_per_sample = (uint16 )((int )bps / 8);   5365   bytes_per_sample = (uint16 )((int )bps / 8);
5366   row = (uint32 )0;   5366   row = (uint32 )0;
5367   while (row < imagelength) {   5367   while (row < imagelength) {
5368     if (row + tl > imagelength) {   5368     if (row + tl > imagelength) {
5369       tmp___4 = imagelength - row;   5369       tmp___4 = imagelength - row;
5370     } else {   5370     } else {
5371       tmp___4 = tl;   5371       tmp___4 = tl;
5372     }   5372     }
5373     nrow = tmp___4;   5373     nrow = tmp___4;
5374     colb = (uint32 )0;   5374     colb = (uint32 )0;
5375     col = (uint32 )0;   5375     col = (uint32 )0;
5376     while (col < imagewidth) {   5376     while (col < imagewidth) {
5377       s = (tsample_t )0;   5377       s = (tsample_t )0;
5378       while ((int )s < (int )spp) {   5378       while ((int )s < (int )spp) {
5379         if (colb + (uint32 )tilew > imagew) {   5379         if (colb + (uint32 )tilew > imagew) {
5380           width = imagew - colb;   5380           width = imagew - colb;
5381           oskew = (int )((uint32 )tilew - width);   5381           oskew = (int )((uint32 )tilew - width);
5382           cpContigBufToSeparateBuf((uint8 *)obuf,   5382           cpContigBufToSeparateBuf((uint8 *)obuf,
5383                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,   5383                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,
5384                                    width / (uint32 )bytes_per_sample, oskew,   5384                                    width / (uint32 )bytes_per_sample, oskew,
5385                                    oskew * (int )spp + iskew, spp,   5385                                    oskew * (int )spp + iskew, spp,
5386                                    (int )bytes_per_sample);   5386                                    (int )bytes_per_sample);
5387         } else {   5387         } else {
5388           cpContigBufToSeparateBuf((uint8 *)obuf,   5388           cpContigBufToSeparateBuf((uint8 *)obuf,
5389                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,   5389                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,
5390                                    tilewidth, 0, iskew, spp,   5390                                    tilewidth, 0, iskew, spp,
5391                                    (int )bytes_per_sample);   5391                                    (int )bytes_per_sample);
5392         }   5392         }
5393         tmp___5 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, s);   5393         tmp___5 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, s);
5394         if (tmp___5 < 0) {   5394         if (tmp___5 < 0) {
5395           _TIFFfree(obuf);   5395           _TIFFfree(obuf);
5396           return (0);   5396           return (0);
5397         } else {   5397         } else {
5398     5398  
5399         }   5399         }
5400         s = (tsample_t )((int )s + 1);   5400         s = (tsample_t )((int )s + 1);
5401       }   5401       }
5402       colb += (uint32 )tilew;   5402       colb += (uint32 )tilew;
5403       col += tw;   5403       col += tw;
5404     }   5404     }
5405     bufp += nrow * iimagew;   5405     bufp += nrow * iimagew;
5406     row += tl;   5406     row += tl;
5407   }   5407   }
5408   _TIFFfree(obuf);   5408   _TIFFfree(obuf);
5409   return (1);   5409   return (1);
5410 }   5410 }
5411 }   5411 }
5412 static int cpContigStrips2ContigTiles(TIFF *in , TIFF *out ,   5412 static int cpContigStrips2ContigTiles(TIFF *in , TIFF *out ,
5413                                       uint32 imagelength , uint32 imagewidth ,   5413                                       uint32 imagelength , uint32 imagewidth ,
5414                                       tsample_t spp )   5414                                       tsample_t spp )
5415 {   5415 {
5416   int tmp ;   5416   int tmp ;
5417     5417  
5418   {   5418   {
5419   tmp = cpImage(in, out, & readContigStripsIntoBuffer,   5419   tmp = cpImage(in, out, & readContigStripsIntoBuffer,
5420                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5420                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5421   return (tmp);   5421   return (tmp);
5422 }   5422 }
5423 }   5423 }
5424 static int cpContigStrips2SeparateTiles(TIFF *in , TIFF *out ,   5424 static int cpContigStrips2SeparateTiles(TIFF *in , TIFF *out ,
5425                                         uint32 imagelength , uint32 imagewidth ,   5425                                         uint32 imagelength , uint32 imagewidth ,
5426                                         tsample_t spp )   5426                                         tsample_t spp )
5427 {   5427 {
5428   int tmp ;   5428   int tmp ;
5429     5429  
5430   {   5430   {
5431   tmp = cpImage(in, out, & readContigStripsIntoBuffer,   5431   tmp = cpImage(in, out, & readContigStripsIntoBuffer,
5432                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5432                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5433   return (tmp);   5433   return (tmp);
5434 }   5434 }
5435 }   5435 }
5436 static int cpSeparateStrips2ContigTiles(TIFF *in , TIFF *out ,   5436 static int cpSeparateStrips2ContigTiles(TIFF *in , TIFF *out ,
5437                                         uint32 imagelength , uint32 imagewidth ,   5437                                         uint32 imagelength , uint32 imagewidth ,
5438                                         tsample_t spp )   5438                                         tsample_t spp )
5439 {   5439 {
5440   int tmp ;   5440   int tmp ;
5441     5441  
5442   {   5442   {
5443   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,   5443   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,
5444                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5444                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5445   return (tmp);   5445   return (tmp);
5446 }   5446 }
5447 }   5447 }
5448 static int cpSeparateStrips2SeparateTiles(TIFF *in , TIFF *out ,   5448 static int cpSeparateStrips2SeparateTiles(TIFF *in , TIFF *out ,
5449                                           uint32 imagelength ,   5449                                           uint32 imagelength ,
5450                                           uint32 imagewidth , tsample_t spp )   5450                                           uint32 imagewidth , tsample_t spp )
5451 {   5451 {
5452   int tmp ;   5452   int tmp ;
5453     5453  
5454   {   5454   {
5455   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,   5455   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,
5456                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5456                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5457   return (tmp);   5457   return (tmp);
5458 }   5458 }
5459 }   5459 }
5460 static int cpContigTiles2ContigTiles(TIFF *in , TIFF *out , uint32 imagelength ,   5460 static int cpContigTiles2ContigTiles(TIFF *in , TIFF *out , uint32 imagelength ,
5461                                      uint32 imagewidth , tsample_t spp )   5461                                      uint32 imagewidth , tsample_t spp )
5462 {   5462 {
5463   int tmp ;   5463   int tmp ;
5464     5464  
5465   {   5465   {
5466   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5466   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5467                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5467                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5468   return (tmp);   5468   return (tmp);
5469 }   5469 }
5470 }   5470 }
5471 static int cpContigTiles2SeparateTiles(TIFF *in , TIFF *out ,   5471 static int cpContigTiles2SeparateTiles(TIFF *in , TIFF *out ,
5472                                        uint32 imagelength , uint32 imagewidth ,   5472                                        uint32 imagelength , uint32 imagewidth ,
5473                                        tsample_t spp )   5473                                        tsample_t spp )
5474 {   5474 {
5475   int tmp ;   5475   int tmp ;
5476     5476  
5477   {   5477   {
5478   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5478   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5479                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5479                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5480   return (tmp);   5480   return (tmp);
5481 }   5481 }
5482 }   5482 }
5483 static int cpSeparateTiles2ContigTiles(TIFF *in , TIFF *out ,   5483 static int cpSeparateTiles2ContigTiles(TIFF *in , TIFF *out ,
5484                                        uint32 imagelength , uint32 imagewidth ,   5484                                        uint32 imagelength , uint32 imagewidth ,
5485                                        tsample_t spp )   5485                                        tsample_t spp )
5486 {   5486 {
5487   int tmp ;   5487   int tmp ;
5488     5488  
5489   {   5489   {
5490   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5490   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5491                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5491                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5492   return (tmp);   5492   return (tmp);
5493 }   5493 }
5494 }   5494 }
5495 static int cpSeparateTiles2SeparateTiles(TIFF *in , TIFF *out ,   5495 static int cpSeparateTiles2SeparateTiles(TIFF *in , TIFF *out ,
5496                                          uint32 imagelength ,   5496                                          uint32 imagelength ,
5497                                          uint32 imagewidth , tsample_t spp )   5497                                          uint32 imagewidth , tsample_t spp )
5498 {   5498 {
5499   int tmp ;   5499   int tmp ;
5500     5500  
5501   {   5501   {
5502   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5502   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5503                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5503                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5504   return (tmp);   5504   return (tmp);
5505 }   5505 }
5506 }   5506 }
5507 static int cpContigTiles2ContigStrips(TIFF *in , TIFF *out ,   5507 static int cpContigTiles2ContigStrips(TIFF *in , TIFF *out ,
5508                                       uint32 imagelength , uint32 imagewidth ,   5508                                       uint32 imagelength , uint32 imagewidth ,
5509                                       tsample_t spp )   5509                                       tsample_t spp )
5510 {   5510 {
5511   int tmp ;   5511   int tmp ;
5512     5512  
5513   {   5513   {
5514   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5514   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5515                 & writeBufferToContigStrips, imagelength, imagewidth, spp);   5515                 & writeBufferToContigStrips, imagelength, imagewidth, spp);
5516   return (tmp);   5516   return (tmp);
5517 }   5517 }
5518 }   5518 }
5519 static int cpContigTiles2SeparateStrips(TIFF *in , TIFF *out ,   5519 static int cpContigTiles2SeparateStrips(TIFF *in , TIFF *out ,
5520                                         uint32 imagelength , uint32 imagewidth ,   5520                                         uint32 imagelength , uint32 imagewidth ,
5521                                         tsample_t spp )   5521                                         tsample_t spp )
5522 {   5522 {
5523   int tmp ;   5523   int tmp ;
5524     5524  
5525   {   5525   {
5526   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5526   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5527                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);   5527                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);
5528   return (tmp);   5528   return (tmp);
5529 }   5529 }
5530 }   5530 }
5531 static int cpSeparateTiles2ContigStrips(TIFF *in , TIFF *out ,   5531 static int cpSeparateTiles2ContigStrips(TIFF *in , TIFF *out ,
5532                                         uint32 imagelength , uint32 imagewidth ,   5532                                         uint32 imagelength , uint32 imagewidth ,
5533                                         tsample_t spp )   5533                                         tsample_t spp )
5534 {   5534 {
5535   int tmp ;   5535   int tmp ;
5536     5536  
5537   {   5537   {
5538   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5538   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5539                 & writeBufferToContigStrips, imagelength, imagewidth, spp);   5539                 & writeBufferToContigStrips, imagelength, imagewidth, spp);
5540   return (tmp);   5540   return (tmp);
5541 }   5541 }
5542 }   5542 }
5543 static int cpSeparateTiles2SeparateStrips(TIFF *in , TIFF *out ,   5543 static int cpSeparateTiles2SeparateStrips(TIFF *in , TIFF *out ,
5544                                           uint32 imagelength ,   5544                                           uint32 imagelength ,
5545                                           uint32 imagewidth , tsample_t spp )   5545                                           uint32 imagewidth , tsample_t spp )
5546 {   5546 {
5547   int tmp ;   5547   int tmp ;
5548     5548  
5549   {   5549   {
5550   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5550   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5551                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);   5551                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);
5552   return (tmp);   5552   return (tmp);
5553 }   5553 }
5554 }   5554 }
5555 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,   5555 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,
5556                              uint16 samplesperpixel )   5556                              uint16 samplesperpixel )
5557 {   5557 {
5558   uint16 shortv ;   5558   uint16 shortv ;
5559   uint32 w ;   5559   uint32 w ;
5560   uint32 l ;   5560   uint32 l ;
5561   uint32 tw ;   5561   uint32 tw ;
5562   uint32 tl ;   5562   uint32 tl ;
5563   int bychunk ;   5563   int bychunk ;
5564   char const   *tmp ;   5564   char const   *tmp ;
5565   uint32 irps ;   5565   uint32 irps ;
5566   int tmp___0 ;   5566   int tmp___0 ;
5567   char const   *tmp___1 ;   5567   char const   *tmp___1 ;
5568   int tmp___2 ;   5568   int tmp___2 ;
5569   int tmp___3 ;   5569   int tmp___3 ;
5570   int tmp___4 ;   5570   int tmp___4 ;
5571   int tmp___5 ;   5571   int tmp___5 ;
5572   int tmp___6 ;   5572   int tmp___6 ;
5573   int tmp___7 ;   5573   int tmp___7 ;
5574   int tmp___8 ;   5574   int tmp___8 ;
5575   int tmp___9 ;   5575   int tmp___9 ;
5576   int tmp___10 ;   5576   int tmp___10 ;
5577   int (*tmp___11)(TIFF *in , TIFF *out , uint32 imagelength ,   5577   int (*tmp___11)(TIFF *in , TIFF *out , uint32 imagelength ,
5578                   uint32 imagewidth , tsample_t spp ) ;   5578                   uint32 imagewidth , tsample_t spp ) ;
5579   char const   *tmp___12 ;   5579   char const   *tmp___12 ;
5580     5580  
5581   {   5581   {
5582   TIFFGetField(in, (ttag_t )284, & shortv);   5582   TIFFGetField(in, (ttag_t )284, & shortv);
5583   if ((int )shortv != (int )config) {   5583   if ((int )shortv != (int )config) {
5584     if ((int )bitspersample != 8) {   5584     if ((int )bitspersample != 8) {
5585       if ((int )samplesperpixel > 1) {   5585       if ((int )samplesperpixel > 1) {
5586         tmp = TIFFFileName(in);   5586         tmp = TIFFFileName(in);
5587         fprintf((FILE */* __restrict  */)stderr,   5587         fprintf((FILE */* __restrict  */)stderr,
5588                 (char const   */* __restrict  */)"%s: Cannot handle different planar configuration w/ bits/sample != 8\n",   5588                 (char const   */* __restrict  */)"%s: Cannot handle different planar configuration w/ bits/sample != 8\n",
5589                 tmp);   5589                 tmp);
5590         return ((copyFunc )((void *)0));   5590         return ((copyFunc )((void *)0));
5591       } else {   5591       } else {
5592     5592  
5593       }   5593       }
5594     } else {   5594     } else {
5595     5595  
5596     }   5596     }
5597   } else {   5597   } else {
5598     5598  
5599   }   5599   }
5600   TIFFGetField(in, (ttag_t )256, & w);   5600   TIFFGetField(in, (ttag_t )256, & w);
5601   TIFFGetField(in, (ttag_t )257, & l);   5601   TIFFGetField(in, (ttag_t )257, & l);
5602   tmp___7 = TIFFIsTiled(out);   5602   tmp___7 = TIFFIsTiled(out);
5603   if (tmp___7) {   5603   if (tmp___7) {
5604     goto _L;   5604     goto _L;
5605   } else {   5605   } else {
5606     tmp___8 = TIFFIsTiled(in);   5606     tmp___8 = TIFFIsTiled(in);
5607     if (tmp___8) {   5607     if (tmp___8) {
5608       _L: /* CIL Label */   5608       _L: /* CIL Label */
5609       if (bias) {   5609       if (bias) {
5610         tmp___1 = TIFFFileName(in);   5610         tmp___1 = TIFFFileName(in);
5611         fprintf((FILE */* __restrict  */)stderr,   5611         fprintf((FILE */* __restrict  */)stderr,
5612                 (char const   */* __restrict  */)"%s: Cannot handle tiled configuration w/bias image\n",   5612                 (char const   */* __restrict  */)"%s: Cannot handle tiled configuration w/bias image\n",
5613                 tmp___1);   5613                 tmp___1);
5614         return ((copyFunc )((void *)0));   5614         return ((copyFunc )((void *)0));
5615       } else {   5615       } else {
5616     5616  
5617       }   5617       }
5618       tmp___6 = TIFFIsTiled(out);   5618       tmp___6 = TIFFIsTiled(out);
5619       if (tmp___6) {   5619       if (tmp___6) {
5620         tmp___2 = TIFFGetField(in, (ttag_t )322, & tw);   5620         tmp___2 = TIFFGetField(in, (ttag_t )322, & tw);
5621         if (tmp___2) {   5621         if (tmp___2) {
5622     5622  
5623         } else {   5623         } else {
5624           tw = w;   5624           tw = w;
5625         }   5625         }
5626         tmp___3 = TIFFGetField(in, (ttag_t )323, & tl);   5626         tmp___3 = TIFFGetField(in, (ttag_t )323, & tl);
5627         if (tmp___3) {   5627         if (tmp___3) {
5628     5628  
5629         } else {   5629         } else {
5630           tl = l;   5630           tl = l;
5631         }   5631         }
5632         if (tw == tilewidth) {   5632         if (tw == tilewidth) {
5633           if (tl == tilelength) {   5633           if (tl == tilelength) {
5634             tmp___4 = 1;   5634             tmp___4 = 1;
5635           } else {   5635           } else {
5636             tmp___4 = 0;   5636             tmp___4 = 0;
5637           }   5637           }
5638         } else {   5638         } else {
5639           tmp___4 = 0;   5639           tmp___4 = 0;
5640         }   5640         }
5641         bychunk = tmp___4;   5641         bychunk = tmp___4;
5642       } else {   5642       } else {
5643         TIFFGetField(in, (ttag_t )322, & tw);   5643         TIFFGetField(in, (ttag_t )322, & tw);
5644         TIFFGetField(in, (ttag_t )323, & tl);   5644         TIFFGetField(in, (ttag_t )323, & tl);
5645         if (tw == w) {   5645         if (tw == w) {
5646           if (tl == rowsperstrip) {   5646           if (tl == rowsperstrip) {
5647             tmp___5 = 1;   5647             tmp___5 = 1;
5648           } else {   5648           } else {
5649             tmp___5 = 0;   5649             tmp___5 = 0;
5650           }   5650           }
5651         } else {   5651         } else {
5652           tmp___5 = 0;   5652           tmp___5 = 0;
5653         }   5653         }
5654         bychunk = tmp___5;   5654         bychunk = tmp___5;
5655       }   5655       }
5656     } else {   5656     } else {
5657       irps = (uint32 )-1L;   5657       irps = (uint32 )-1L;
5658       TIFFGetField(in, (ttag_t )278, & irps);   5658       TIFFGetField(in, (ttag_t )278, & irps);
5659       if (! bias) {   5659       if (! bias) {
5660         if (rowsperstrip == irps) {   5660         if (rowsperstrip == irps) {
5661           tmp___0 = 1;   5661           tmp___0 = 1;
5662         } else {   5662         } else {
5663           tmp___0 = 0;   5663           tmp___0 = 0;
5664         }   5664         }
5665       } else {   5665       } else {
5666         tmp___0 = 0;   5666         tmp___0 = 0;
5667       }   5667       }
5668       bychunk = tmp___0;   5668       bychunk = tmp___0;
5669     }   5669     }
5670   }   5670   }
5671   tmp___9 = TIFFIsTiled(in);   5671   tmp___9 = TIFFIsTiled(in);
5672   tmp___10 = TIFFIsTiled(out);   5672   tmp___10 = TIFFIsTiled(out);
5673   switch ((long )((((((int )shortv << 11) | ((int )config << 3)) | (tmp___9 << 2)) | (tmp___10 << 1)) | bychunk)) {   5673   switch ((long )((((((int )shortv << 11) | ((int )config << 3)) | (tmp___9 << 2)) | (tmp___10 << 1)) | bychunk)) {
5674   case (long )((((1 << 11) | (1 << 3)) | (1 << 1)) | 1):   5674   case (long )((((1 << 11) | (1 << 3)) | (1 << 1)) | 1):
5675   case (long )(((1 << 11) | (1 << 3)) | (1 << 1)):   5675   case (long )(((1 << 11) | (1 << 3)) | (1 << 1)):
5676   return (& cpContigStrips2ContigTiles);   5676   return (& cpContigStrips2ContigTiles);
5677   case (long )((((1 << 11) | (2 << 3)) | (1 << 1)) | 1):   5677   case (long )((((1 << 11) | (2 << 3)) | (1 << 1)) | 1):
5678   case (long )(((1 << 11) | (2 << 3)) | (1 << 1)):   5678   case (long )(((1 << 11) | (2 << 3)) | (1 << 1)):
5679   return (& cpContigStrips2SeparateTiles);   5679   return (& cpContigStrips2SeparateTiles);
5680   case (long )((((2 << 11) | (1 << 3)) | (1 << 1)) | 1):   5680   case (long )((((2 << 11) | (1 << 3)) | (1 << 1)) | 1):
5681   case (long )(((2 << 11) | (1 << 3)) | (1 << 1)):   5681   case (long )(((2 << 11) | (1 << 3)) | (1 << 1)):
5682   return (& cpSeparateStrips2ContigTiles);   5682   return (& cpSeparateStrips2ContigTiles);
5683   case (long )((((2 << 11) | (2 << 3)) | (1 << 1)) | 1):   5683   case (long )((((2 << 11) | (2 << 3)) | (1 << 1)) | 1):
5684   case (long )(((2 << 11) | (2 << 3)) | (1 << 1)):   5684   case (long )(((2 << 11) | (2 << 3)) | (1 << 1)):
5685   return (& cpSeparateStrips2SeparateTiles);   5685   return (& cpSeparateStrips2SeparateTiles);
5686   case (long )(((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5686   case (long )(((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5687   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):   5687   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):
5688   return (& cpContigTiles2ContigTiles);   5688   return (& cpContigTiles2ContigTiles);
5689   case (long )(((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5689   case (long )(((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5690   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):   5690   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):
5691   return (& cpContigTiles2SeparateTiles);   5691   return (& cpContigTiles2SeparateTiles);
5692   case (long )(((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5692   case (long )(((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5693   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):   5693   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):
5694   return (& cpSeparateTiles2ContigTiles);   5694   return (& cpSeparateTiles2ContigTiles);
5695   case (long )(((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5695   case (long )(((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5696   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):   5696   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):
5697   return (& cpSeparateTiles2SeparateTiles);   5697   return (& cpSeparateTiles2SeparateTiles);
5698   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | 1):   5698   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | 1):
5699   case (long )(((1 << 11) | (1 << 3)) | (1 << 2)):   5699   case (long )(((1 << 11) | (1 << 3)) | (1 << 2)):
5700   return (& cpContigTiles2ContigStrips);   5700   return (& cpContigTiles2ContigStrips);
5701   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | 1):   5701   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | 1):
5702   case (long )(((1 << 11) | (2 << 3)) | (1 << 2)):   5702   case (long )(((1 << 11) | (2 << 3)) | (1 << 2)):
5703   return (& cpContigTiles2SeparateStrips);   5703   return (& cpContigTiles2SeparateStrips);
5704   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | 1):   5704   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | 1):
5705   case (long )(((2 << 11) | (1 << 3)) | (1 << 2)):   5705   case (long )(((2 << 11) | (1 << 3)) | (1 << 2)):
5706   return (& cpSeparateTiles2ContigStrips);   5706   return (& cpSeparateTiles2ContigStrips);
5707   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | 1):   5707   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | 1):
5708   case (long )(((2 << 11) | (2 << 3)) | (1 << 2)):   5708   case (long )(((2 << 11) | (2 << 3)) | (1 << 2)):
5709   return (& cpSeparateTiles2SeparateStrips);   5709   return (& cpSeparateTiles2SeparateStrips);
5710   case (long )((1 << 11) | (1 << 3)):   5710   case (long )((1 << 11) | (1 << 3)):
5711   if (bias) {   5711   if (bias) {
5712     tmp___11 = & cpBiasedContig2Contig;   5712     tmp___11 = & cpBiasedContig2Contig;
5713   } else {   5713   } else {
5714     tmp___11 = & cpContig2ContigByRow;   5714     tmp___11 = & cpContig2ContigByRow;
5715   }   5715   }
5716   return (tmp___11);   5716   return (tmp___11);
5717   case (long )(((1 << 11) | (1 << 3)) | 1):   5717   case (long )(((1 << 11) | (1 << 3)) | 1):
5718   return (& cpDecodedStrips);   5718   return (& cpDecodedStrips);
5719   case (long )(((1 << 11) | (2 << 3)) | 1):   5719   case (long )(((1 << 11) | (2 << 3)) | 1):
5720   case (long )((1 << 11) | (2 << 3)):   5720   case (long )((1 << 11) | (2 << 3)):
5721   return (& cpContig2SeparateByRow);   5721   return (& cpContig2SeparateByRow);
5722   case (long )(((2 << 11) | (1 << 3)) | 1):   5722   case (long )(((2 << 11) | (1 << 3)) | 1):
5723   case (long )((2 << 11) | (1 << 3)):   5723   case (long )((2 << 11) | (1 << 3)):
5724   return (& cpSeparate2ContigByRow);   5724   return (& cpSeparate2ContigByRow);
5725   case (long )(((2 << 11) | (2 << 3)) | 1):   5725   case (long )(((2 << 11) | (2 << 3)) | 1):
5726   case (long )((2 << 11) | (2 << 3)):   5726   case (long )((2 << 11) | (2 << 3)):
5727   return (& cpSeparate2SeparateByRow);   5727   return (& cpSeparate2SeparateByRow);
5728   }   5728   }
5729   tmp___12 = TIFFFileName(in);   5729   tmp___12 = TIFFFileName(in);
5730   fprintf((FILE */* __restrict  */)stderr,   5730   fprintf((FILE */* __restrict  */)stderr,
5731           (char const   */* __restrict  */)"tiffcp: %s: Don\'t know how to copy/convert image.\n",   5731           (char const   */* __restrict  */)"tiffcp: %s: Don\'t know how to copy/convert image.\n",
5732           tmp___12);   5732           tmp___12);
5733   return ((copyFunc )((void *)0));   5733   return ((copyFunc )((void *)0));
5734 }   5734 }
5735 }   5735 }